Web3auth process page doesn’t redirect to my route after completed proccesing, i guess redirectUrl
is not working,
Can help me take a look?
- SDK Version: 3.1.4
Web3auth process page doesn’t redirect to my route after completed proccesing, i guess redirectUrl
is not working,
Can help me take a look?
@chaulinh.se.it Thanks for your recent post.
Can you share your Github repo so we can check this behavior ?
Sorry about this, my github repo is private, i only can share above code
Ok, then share the implementation code as text not screenshots.
The following document from web3auth, RedirectUrl will redirect API responses, but when i implemented for flutter, it does not work
Please refer to our Flutter examples https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/flutter
Sorry, do you understand my mean?
Did you refer to these working examples shared in my previous post to guide your code?
@chaulinh.se.it can you attach a video of the flow? From code, it looks fine to me. It’ll help us debug more since you can’t share the code. Also, please let us know what buildEnv are you using to debug.
@chaulinh.se.it We have not received any reply. If you need assistance please reply with the requested information or the thread will get closed.
Hi @vjgee @Ayush sorry, i am late
alright!
Let me explain again
Redirect URL meaning, it will redirect to page which is declared on app after completing proccess with web3auth, right?
I tried on web, it works fine, but when i tried on android and ios, it didn’t redirect to target page which is declared by me instead it redirected to current page like login or sign up,
by the way i am using production env
@chaulinh.se.it, the redirect url is only used for deeplinking purposes to open the app from browser once the login process is complete. From what I understood, you are calling login function from Login Page, and upon success you want to redirect it to Page XYZ instead of Login? You can use navigator to push the new page replacement upon success.
Navigator.of(context).pushReplacement(MaterialPageRoute(builder: (_) {
return YourScreen();
}));
If you want to use the deeplinking for navigation, you can check it out documentation of Flutter for deeplinking. The issue is not related to Web3Auth.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.