
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
- Data Diet Needed
I love the nested related data... but can we request limited data? I think my requests need to go on a diet. I return my courses, and the units all come with th...
- Issue in Accessing Cloud from Pakistan
Earlier today I faced an issue accessing cloud services but later on VPN fixed it. Now even with vpn I can't access cloud. When my App tries to create a docume...
- Appwrite Cloud Ui and Server Crashes rep...
I am having trouble with Appwrite cloud and server crashes and Ui crashed repeatedly. Raised a GitHub issue as well. https://github.com/appwrite/appwrite/issues...
