Back

Email verification not working on mobile

  • 0
  • Web
  • Cloud
кеni
11 May, 2024, 16:02

I thought it would get solved when using a custom domain for my API endpoint but it's still not working. My API and app are now running on the same URL. I'm suspecting it's a cookie thing. Pretty hard to debug, anyone been running into this issue?

TL;DR
Email verification not working on mobile for developers. Issue not common, suspected to be a mobile browser problem. The generated link from `account.createVerification` does not work on mobile devices. Debugging needed, suspecting it might be related to cookies. Can't log/debug properly, looking into using remote debugger tools like Chrome. Solution: Investigate if the handling of mobile browsers differs from desktop.
Steven
11 May, 2024, 16:12

Can you provide more details about what you're doing?

кеni
11 May, 2024, 16:13

Visiting the link generated from account.createVerification does not work on mobile devices

Steven
11 May, 2024, 16:14

What link did you put?

кеni
11 May, 2024, 16:14
кеni
11 May, 2024, 16:15

it works on desktop, so i'm suspecting phones are handling something different

Steven
11 May, 2024, 16:15

You mean a mobile browser?

кеni
11 May, 2024, 16:15

yeah

кеni
11 May, 2024, 16:15

same on chrome/safari

кеni
11 May, 2024, 16:16

not sure if this breaks or something else

TypeScript
  const userId = searchParams.get("userId")```
Steven
11 May, 2024, 16:16

What's your API endpoint?

кеni
11 May, 2024, 16:16
Steven
11 May, 2024, 16:16

Can you do some sort of logging/debugging to try and see what's wrong?

Steven
11 May, 2024, 16:17

I think chrome as a remote debugger tool

кеni
11 May, 2024, 16:19

Hmm ok I'll look into this more when I have time. I'm not sure how to log/debug this stuff but i'll look into that remote debugger tool.

I was hoping this would be a common issue that more people would've encountered and fixed

кеni
11 May, 2024, 16:21

I'll remove email verification for now

Steven
11 May, 2024, 16:42

First I heard of this. I do email verification in the browser and it works fine. No session is required for email verification

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more