Back

Redirect Url using Magic Url for deep linking to a RN App and Login

  • 0
  • Web
Tassos P.
19 Oct, 2023, 15:18

Is it possible to use custom url as the redirect urlwhile using the redirect login option? I need to use it and deep link to an expo app.... but so far it returns me that I have to use localhost or host url only....

TL;DR
User wants to redirect a deep link URL to a React Native app and is asking for assistance. They are unsure about configuring the React Native app and need guidance on defining a matching hostname. Another user suggests adding a web platform with a matching hostname in the Appwrite project. It is mentioned that the Web SDK is not ideal for React Native apps. User asks if it is possible to use a custom URL as the redirect URL for deep linking in an Expo app, but has only been able to use localhost or host URL so far. Unfortunately, there is no clear solution provided in the support thread.
Tessa
19 Oct, 2023, 17:36

@Aditya Oberai can you take a look at this?

Aditya Oberai
19 Oct, 2023, 17:48

The Web SDK was primarily made for web apps and not React Native (cross-platform apps), so we have seen some janky behaviour with authentication

I do have limited knowledge of React Native, would need to sub in @Steven here, I'm afraid

Drake
19 Oct, 2023, 18:31

you must add a web platform with a matching hostname in your appwrite project

Tassos P.
19 Oct, 2023, 20:33

@Steven could you define me what do you mean by saying matching hostname? I mean if you could assist me a bit more? Highly appreciated

Drake
19 Oct, 2023, 20:37

whatever domain the react native app is coming from needs to be put in Appwrite...i don't know what that is in react native. you might be able to configure it too

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