
I have read all the questions people have posted before me and this is what i have tired
TypeScript
onPressed: () async {
final account = Account(client);
try {
await account.createMagicURLSession(
email: _emailController.text,
);
} on AppwriteException catch(e) {
print(e.message);
// display error to the user
}
}```
if you dont pass a url the email you receive will have https://cloud.appwrite.io/auth/magic-url? with userId and secret.
okey so this was the AndroidManifest.xml file
TypeScript
no luck did not even open the android app
okey now i have tired the custom domain option. i added the custom domain to appwrite console /settings/domains and as well added a platform with same custom domain or it doesnt work. and passed it as a url ,i was still not able to open app with link
TL;DR
Developers are experiencing issues with setting up a Magic URL in Flutter. The provided code and AndroidManifest.xml configurations seem to be causing problems with opening the Android app. Trying a custom domain and ensuring it is set up correctly in the Appwrite console may help resolve the issue.
TypeScript
onPressed: () async {
final account = Account(client);
try {
await account.createMagicURLSession(
email: _emailController.text,
url:'appwrite-auth-callback-auth-[projectIDexample]://subdomain.Domain
.com/magic_url_session',
);
} on AppwriteException catch(e) {
print(e.message);
// display error to the user
}
}
subdomain.Domain.com is the custom domain you added

i even updated the AndroidManifest.xml
<data android:scheme="appwrite-auth-callback-auth-[projectIDexample]:" android:host="subdomain.Domain
.com" android:pathPrefix="/magic_url_session" />
Recommended threads
- How to reduce DB Reads?
I just noticed that I hit the 500k db reads limit on my very small next js app with the most data being present in one collection having around 50 documents. ...
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
- Pending upload some file, but not for ot...
When upload this file, always got pending. But when I upload another file, it works. Why?
