Web3Auth / web3auth-flutter-sdk

MIT License
37 stars 24 forks source link

How do I specify correct `android:scheme` on Android #81

Closed Daeon97 closed 2 months ago

Daeon97 commented 3 months ago

In your example app AndroidManifest.xml file, you have this

Screenshot 2024-07-12 at 8 50 18 AM

However you never specify where to get or how to know the correct android:scheme to specify here. This is neither in your docs nor explained in the example app itself

In your docs, you use this to illustrate

Screenshot 2024-07-12 at 9 03 31 AM

Accept URIs: w3a://com.example.w3aflutter by deduction I guess w3a:// is the android:scheme here however my guess may be wrong because this is not clearly stated in the docs and nothing is said about how to get correct android:scheme or the implications of not using the correct android:scheme. Now, in your example app you use android:scheme="torusapp"

I am really confused. With relation to this library, should android:scheme conform to a specific pattern or value or not and also could you guys update your docs to reflect how exactly one can get, set and/or correctly specify this android:scheme

AyushBherwani1998 commented 2 months ago

Hey @Daeon97 they scheme would be w3a instead of w3a://. The application will create the url based on the scheme, host and path.

Daeon97 commented 2 months ago

Hey @Daeon97 they scheme would be w3a instead of w3a://. The application will create the url based on the scheme, host and path.

Alright thanks @AyushBherwani1998