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
- Column size update error – "Invalid inde...
Hey everyone, I’m running into an issue when trying to update the size of an existing column in my Appwrite database. I’m trying to change the size from 30 to 5...
- Bug on Updating User Limit
I’ve encountered a bug in the Appwrite Cloud UI when attempting to update the user limit to 0. My goal is to disable public registration while still allowing e...
- Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...