React Developer
Does anyone has a guide on how to implement this on a Expo project? I've been trying to implement it, used AI and etc but can't.
- Do I have to have a domain/website to redirect back to the app?
Votes
0
Replies
24
Participants
1
Messages
25
React Developer
Does anyone has a guide on how to implement this on a Expo project? I've been trying to implement it, used AI and etc but can't.
Rank 7: Quantum Computer
No
You need your app scheme to be appwrite-callback-<projectId>:// and pass it as success and fail param. It should redirect back
Rank 2: Process
again, that's an invalid success param
Rank 2: Process
I created a site template using the react template and for some reason I'm getting a 404 nginx error, even though the deployment was successful
Rank 2: Process
so 2 problems happening
Rank 2: Process
@Axistro can't use an uri for redirecting back to the app and can't create a site to redirect (at least using appwrite)
Rank 2: Process
also, can you link me the documentation on this?
Rank 7: Quantum Computer
You also need to add that domain as a platform in the overview section.
Rank 2: Process
let me check
Rank 7: Quantum Computer
Rank 7: Quantum Computer
Select react native
Rank 7: Quantum Computer
Self hosted?
Rank 2: Process
yes
Rank 7: Quantum Computer
I cannot help much more than this in self hosted. Cause I dont know anything about it.
Rank 7: Quantum Computer
If its on the code part I can
Rank 2: Process
@Axistro I added the appwrite-callback- as a React Native platform, changed the scheme to appwrite-callback- on the app.config.js too.
And on the redirectUri
const redirectUri = appwrite-callback-${config.projectId}://;
even have a console log after this to check if it's correct and
still got the invalid success param
tried prebuilding again and nothing
Rank 2: Process
maybe I have to wait for the platform to load?
Rank 7: Quantum Computer
In react native it does not need to wait. It just checks the scheme and allows anyway.
Maybe it has something to do with your bare react native project.
Rank 7: Quantum Computer
In the console log
Was the scheme updated?
Rank 2: Process
it seems both platforms I have for Android React Native are not shown on the available success params
Rank 2: Process
do I have to prebuild every time I change the scheme? and how can I check if the scheme was updated?
Rank 2: Process
Do I have to do anything after creating it?
Rank 7: Quantum Computer
Nope
Rank 7: Quantum Computer
Yes
And
Go to browser and try writing the scheme
It will show something like
'Open this app'.
And if it does, the scheme works
Rank 2: Process
the problem seems to be just the platform creation