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
Did you put a returning address into recovery function?
As parameters of the function , I added email and URL ( cloud.appwrite.io )
The url should be your domain for app (yourdomain.com)
When passing another URL the console says URL host must be one of: localhost , cloud.appwrite.io
So where should I use my app domain
And to be sure, we understand ourselves, what does domain refers to in case of a flutter android app
Oh, sorry, flutter app.... I dont really know how is it there.
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
in my project your can see how implement the redirect
you need window.location.replace(
"appwrite-callback-645117a4024fbb32ed34://updateRecovery"
);
Thanks I'll check
Okay I'll check
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
WidgetsFlutterBinding.ensureInitialized();
final deepLinkHandler = DeepLinkHandler(onLinkReceived: (Uri uri) {
// watch snackbar o redirect
print('URL recibido: $uri');
});
WidgetsBinding.instance!.addObserver(deepLinkHandler);
runApp(MyApp());
}```
you need a event observator
Which package is DeepLinkHandler from ?
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_links
When setting up, should I use the intent in the description or just keep appwrite one
Recommended threads
- Appwrite cloud system status?
Noticed a lot of intermittent system SSL failures on requests to Appwrite in the past hour. Does appwrite have something like https://azure.status.microsoft/en...
- Appwrite not using mail provider (mailgu...
I've added a Mail Provider (Mailgun) following the instructions here https://appwrite.io/docs/products/messaging/mailgun I can send messages via mailgun using...
- unable to create project with custom id
when creating a project, and click on project ID button, nothing happens. is this a bug?