Rank 2: Process
Hi there
After clicking on the link for password recovery, the link does not redirect to my flutter ( android app )
It only open cloud.appwrite.io
So I'm wondering if there's any extra steps to make this work
Votes
0
Replies
21
Participants
Unknown
Messages
22
Rank 2: Process
Hi there
After clicking on the link for password recovery, the link does not redirect to my flutter ( android app )
It only open cloud.appwrite.io
So I'm wondering if there's any extra steps to make this work
Rank 2: Process
Did you put a returning address into recovery function?
Rank 2: Process
As parameters of the function , I added email and URL ( cloud.appwrite.io )
Rank 2: Process
The url should be your domain for app (yourdomain.com)
Rank 2: Process
When passing another URL the console says URL host must be one of: localhost , cloud.appwrite.io
Rank 2: Process
So where should I use my app domain
Rank 2: Process
And to be sure, we understand ourselves, what does domain refers to in case of a flutter android app
Rank 2: Process
Oh, sorry, flutter app.... I dont really know how is it there.
Rank 2: Process
Rank 2: Process
I've already seen this , but it's unclear
That's a pretty complex topic.
You'll need to add deep linking to your app, by that you'll send the user to a custom URL in which your app is connected.
Also, check here https://discord.com/channels/564160730845151244/1108537125160353802/1108537840826073199
Rank 3: Container
Rank 3: Container
in my project your can see how implement the redirect
Rank 3: Container
you need window.location.replace( "appwrite-callback-645117a4024fbb32ed34://updateRecovery" );
Rank 2: Process
Thanks I'll check
Rank 2: Process
Okay I'll check
Rank 2: Process
I finally managed to redirect to the app , now I'm searching how to handle it like navigating to a specific page after password update , or just showing a snack bar
Rank 3: Container
WidgetsFlutterBinding.ensureInitialized(); final deepLinkHandler = DeepLinkHandler(onLinkReceived: (Uri uri) { // watch snackbar o redirect print('URL recibido: $uri'); }); WidgetsBinding.instance!.addObserver(deepLinkHandler); runApp(MyApp());}```Rank 3: Container
you need a event observator
Rank 2: Process
Which package is DeepLinkHandler from ?
Rank 3: Container
final Function(Uri) onLinkReceived;
DeepLinkHandler({required this.onLinkReceived});
@override Future<void> didChangeAppLifecycleState(AppLifecycleState state) async { if (state == AppLifecycleState.resumed) { final initialLink = await getInitialLink(); if (initialLink != null) { onLinkReceived(initialLink); } } }}```Use is package https://pub.dev/packages/uni_linksRank 2: Process
When setting up, should I use the intent in the description or just keep appwrite one