You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Build Settings:** Use `Smaller (faster) Builds` / `Shorter Build Time`.
14
13
-**Player Settings:** Use IL2CPP over Mono when available.
14
+
-**Build Settings:** Use `Smaller (faster) Builds` / `Shorter Build Time` for IL2CPP Code Generation.
15
15
-**Stripping Level:** Set `Managed Stripping Level` to `Minimal` (`Player Settings` > `Other Settings` > `Optimization`). (Generally not a hard requirement unless using WalletConnect as a wallet provider option.)
16
16
-**Strip Engine Code:** Make sure this is turned off.
17
17
@@ -47,9 +47,19 @@ No action needed for hosted builds.
47
47
## Mobile
48
48
49
49
-**EDM4U:** Comes with the package, resolves dependencies at runtime. Use `Force Resolve` from `Assets` > `External Dependency Manager` > `Android Resolver`.
50
-
-**Redirect Schemes:** Set custom schemes matching your bundle ID in `Plugins/AndroidManifest.xml` or equivalent to ensure OAuth redirects.
50
+
-**Redirect Schemes:** Set custom schemes matching your bundle ID in `Plugins/AndroidManifest.xml` or equivalent to ensure OAuth redirects if using social login.
51
51
```xml
52
52
<!-- Set your bundle id here -->
53
53
<!-- Replace 'com.thirdweb.unitysdk' with your desired scheme -->
54
54
<dataandroid:scheme="com.thirdweb.unitysdk" />
55
55
```
56
+
57
+
## Troubleshooting OAuth Redirects
58
+
59
+
If you notice issues with redirects on mobile, for instance hanging after selecting an account when logging in with Google, you did not setup OAuth properly.
60
+
Best practice is to use a lowercase bundle id that is the same as your Unity project's application identifier, it must be present in the following places:
61
+
- Your `ThirdwebManager` prefab `Bundle ID` field.
62
+
- Your `Plugins/AndroidManifest.xml` scheme field as mentioned above (it doesn't have to be our default `AndroidManifest.xml`, it can be in your custom one, just add the scheme).
63
+
- Your thirdweb dashboard project settings as one of:
64
+
-`Bundle ID Allowlist` field (those automatically added to allowed redirect URIs).
0 commit comments