Flutter deep link there is no corresponding route in your app - flutter

I have followed this link https://oemampedia.medium.com/how-to-do-deeplink-in-flutter-b0c9a7e1aa9d to use deep link in flutter.
My aim is to make the user click a link sent to his email address, and open this link through the flutter app, so that the user can confirm his email account. Nonetheless, the first time I click the link, it generates this error:
======== Exception caught by Flutter framework =====================================================
The following message was thrown:
Could not navigate to initial route.
The requested route name was: "/api/v1/confirm_my_account?email=a.b#domain.com&Token=blahblahblah"
There was no corresponding route in the app, and therefore the initial route specified will be ignored and "/" will be used instead.
Apparently, after debugging, the line of code generating this error is
stream.receiveBroadcastStream().listen((d) => _onRedirected(d));
Can someone give me a clue on how to proceed?

This "/api/v1/confirm_my_account?email=a.b#domain.com&Token=blahblahblah" is definitely not a name of any route in your app. You are parsing the dynamic link wrong, and it's capturing all of it and assigning it as a route name.
You need to parse the part which has something like /home_screen or the name of any route in your app where you define them in main.

Related

Getting Positioning Error in here sdk flutter initially

I'm using here sdk in my flutter application to get map features in my app. When I'm trying to get user's current location then initially for some time, it is showing me this error which is not a good impression for my application.
It is giving me this error until it finds the location which is represented as this indicator
I've added all the required permissions for that
but still its giving the location after some delays which is not what I want....
I guess its related to refresh token, which is internally managed by HERE SDK, I'm not able to explicitly add that token , I've provided the consent permission but the token thing is delaying its update, maybe I'm wrong.
These are some code snippets,,,,
This is a gist of navigation example -
https://gist.github.com/alemantrix-settyl/5bff0bb621dd53b8309605dba9613f0c
This is calculating the route and starting the navigation
enter image description here
To get more information about the code, visit this repo:
https://github.com/heremaps/here-sdk-examples/tree/master/examples/latest/navigate/flutter/navigation_app

Facebook Custom Tabs

I understand how to create the app for the custom tab. However when I try to layout the next step it comes back with an error message. Can someone help me to properly layout the "With URL Redirects".
I know to put the Id number where is says YOUR APP ID and I have also placed the website in the "YOUR URL" position but it doesn't work. I have watched several videos and they all seem to be prior to the latest FB update.
The problem I am having seems to be coming from the setup for this code below that leads you to the Add Page Tab Dialog prompt. facebook.com/dialog/pagetab? app_id=YOUR_APP_ID &redirect_uri=YOUR_URL When I insert the "Your App ID" and Your URL" and hit enter I am receiving a Facebook Error message that says:
This dialog has been passed a bad parameter. API Error Code: 100 API
Error Description: Invalid parameter Error Message: Requires valid
redirect URI.

Outlook Addin Error Code 13005 for auth.getAccessTokenAsync

So I am trying to use single sign on in an outlook addin. I have registered my app at https://apps.dev.microsoft.com/.
In my Manifest I have
<WebApplicationInfo>
<Id>{myId}</Id>
<Resource>api://mydomain.com:3000/{myId}</Resource>
<Scopes>
<Scope>Mail.Read</Scope>
<Scope>profile</Scope>
</Scopes>
</WebApplicationInfo>
mydomain.com is actually a domain i map to my local IP.
Outlook accepts my manifest just fine. How ever when i call Office.context.auth.getAccessTokenAsync, I get the following response
{name: "Invalid application resource Url provided.", message: "Invalid resource Url specified in the manifest.", code: 13004}
How else should i write the resource url. Am i supposed to add this url somewhere else?
I followed https://learn.microsoft.com/en-us/office/dev/add-ins/develop/register-sso-add-in-aad-v2 and was able to get further. But now i Get {name: "Preauthorization missing.", message: "Missing grant for this add-in.", code: 13005}
I was able to solve Error 13005 by adding /taskpane.html to the end of my redirect URI in the authentication tab of my App Registration [Figure 1]. Originally I just had https://loacalhost:3000 as my redirect URI. Just make sure that whatever endpoint the user is being redirected to is the redirect URI. Seems simple but I spent a lot of time on this.
If you can't figure out what your redirect endpoint is, inspect the taskpane element and then look at the top of the tab. It should be something like DevTools - {localhost:3000/taskpane.html}?_... The text inside of the curly braces is the endpoint, make sure that the whole string is added to the Authentication tab in App registrations.
App Registration Page Example Picture
I hope this helps,
Lucius

The Deezer's API page doesn't let me create a new app

I'm trying to create a new app on Deezer in this link but it doesn't let me, i put all the fields in the correct way and accept the policies, then i press "Create" but nothing happens, not even a error message, justo load a couple of seconds and nothing more. The Javascript console show me an error, it says "Uncaught ReferenceError: myapps is not defined" at line 199 on "create".
You have to fill full url with HTTP scheme (eg. http:// www.example.com) in these 3 fields:
Domain
Redirect URL after authentification
Link to your Terms of Use

Request Dialog CRASHED?

Recently, Facebook has updated the component "request dialog" assigning responsibility to the exclusion of requests to the developers (http://developers.facebook.com/docs/reference/dialogs/requests#deleting). He also made other adjustments to the format of the request id. Thus added configuration option "request 2.0 efficient" on menu of the application developer.
The problem started after this change , the component "request dialog Multi - Friend- Selector" is in serious trouble. The component is crashed while trying to load friends. Sometimes friends loads, but the component does not resize height.
See the image of the errors:
Crashed before load friends:
http://postimage.org/image/glk2mf3bb/
Resize fail
http://postimage.org/image/iobduhn41/
In chrome browser component generates the following error:
s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js:36 Uncaught TypeError: Cannot read property 'origin' of undefined
In firefox generates following error:
Erro: Permission denied to access property 'DocRPC'Arquivo-fonte: https://s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js Linha: 36
Can you reproduce the error with the code itself Documentation
http://developers.facebook.com/docs/reference/dialogs/requests
Help please.
Seeing same errors here, but I can add some info:
It does seem to work if you use the basic example in https://developers.facebook.com/docs/reference/dialogs/requests, which opens up the dialog in a new browser window.
In Chrome, I found an additional error message to the one you posted:
"Unsafe JavaScript attempt to access frame with URL [...] from frame with URL [...]facebook.com/dialog/apprequests. Domains, protocols and ports must match."
From all that I guess the error may be related to the dialog display mode (read https://developers.facebook.com/docs/reference/dialogs). Within my app, I am getting this error exactly as you do, unless I set display to something like 'popup', in which case everything works (but a new borwser window is opened). The docs do state that "Because of the risk of clickjacking, [iframe] is only allowed for some certain dialogs, and requires you to pass a valid access_token." Well, passing access tokens did no good for me.
Little question: are you using some toolkit like GWT?