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
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.