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
Closes TOOL-3456
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating descriptions and improving the clarity of build instructions for Unity and troubleshooting OAuth redirects.
### Detailed summary
- Fixed a typo in the `description` for the Unreal Engine link.
- Changed section title from `General` to `All Target Platforms`.
- Clarified build settings for IL2CPP Code Generation.
- Added details about OAuth redirect troubleshooting, including best practices for bundle IDs.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
-**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/Android/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