-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
- Make sure that the minimum SDK compile version in `build.gradle` is 31 or more. | ||
|
||
```gradle title="android/build.gradle" | ||
buildToolsVersion = "31.0.0" | ||
minSdkVersion = 21 | ||
# highlight-next-line | ||
compileSdkVersion = 31 | ||
# highlight-next-line | ||
targetSdkVersion = 31 | ||
``` | ||
|
||
- Add the intent filter with the `scheme` defined in your `AndroidManifest.xml` | ||
|
||
```xml title="android/app/src/main/AndroidManifest.xml" | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
# replace with your own scheme | ||
# highlight-next-line | ||
<data android:scheme="web3authrnexample" /> | ||
</intent-filter> | ||
``` | ||
|
||
- SDK version 31 requires you to explicitly define `android:exported="true"` in `AndroidManifest.xml`, and check whether it is correctly present or | ||
not. | ||
|
||
```xml title="android/app/src/main/AndroidManifest.xml" | ||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" | ||
android:launchMode="singleTask" | ||
android:windowSoftInputMode="adjustResize" | ||
# highlight-next-line | ||
android:exported="true"> | ||
``` | ||
|
||
- Your `redirectUrl` is your defined scheme following some identifier or your choice. For example, if your scheme is `web3authrnexample`, you can | ||
define your `redirectUrl` as `web3authrnexample://openlogin`. Make sure you register this `redirectUrl` in the | ||
[Web3Auth Developer Dashboard](https://dashboard.web3auth.io). | ||
|
||
```tsx title="App.js" | ||
const scheme = "web3authrnbareexample"; // Or your desired app redirection scheme | ||
const resolvedRedirectUrl = `${scheme}://openlogin`; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- React Native Release 0.71 and above (for Bare React Native Workflow) | ||
|
||
- iOS Platform Target Version 14 and above | ||
|
||
- Android Target SDK Version 31 and above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.