
I have read all the questions people have posted before me and this is what i have tired
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
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

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
- Error while updating documents from Appw...
while trying to update the document in a collection getting Invalid document structure: Unknown attribute: "ids" which is not in the collection. Appreciate the...
- DATABASE ERROR
When I select NULL as the value and click update, it shows that the update is successful, but when I refresh it changes back to add-avatar. It seems that all fi...
- Email Rate Limiting Issues with Magic Li...
Hi team, I'm experiencing rate limiting issues with email sending during user sign-up and need some guidance. **Setup**: - SvelteKit SPA with Appwrite Cloud (P...
