Search Issue Tracker
Fixed
Fixed in 2023.1.8f1, 2023.2.0b4, 2023.3.0a1, 2024.1.0a1
Votes
2
Found in
2023.1.3f1
2023.2.0a22
2023.3.0a1
2024.1.0a1
Issue ID
UUM-42522
Regression
No
[GameActivity] Application.internetReachability doesn't work
More context - [https://forum.unity.com/threads/introducing-gameactivity-for-android-in-2023-1.1409418/#post-9137056]
Calling Application.internetReachability with GameActivity
causes
{code:java}
2023/07/12 12:17:38.995 10388 10418 Warn System.err java.lang.RuntimeException: Can't create handler inside thread Thread[Thread-2,10,main] that has not called Looper.prepare()
2023/07/12 12:17:38.996 10388 10418 Warn System.err at android.os.Handler.<init>(Handler.java:227)
2023/07/12 12:17:38.996 10388 10418 Warn System.err at android.os.Handler.<init>(Handler.java:129)
2023/07/12 12:17:38.996 10388 10418 Warn System.err at android.app.Activity.<init>(Activity.java:886)
2023/07/12 12:17:38.996 10388 10418 Warn System.err at com.unity3d.player.NetworkConnectivity.<init>(Unknown Source:18)
2023/07/12 12:17:38.996 10388 10418 Warn System.err at com.unity3d.player.NetworkConnectivityNougat.<init>(Unknown Source:49)
2023/07/12 12:17:38.996 10388 10418 Warn System.err at com.unity3d.player.UnityPlayer.getNetworkConnectivity(Unknown Source:727) {code}
To reproduce:
* Open attached project
* Build & Run for GameActivity on Android
* The application will crash
Note: Try build & running against Activity and see how it should work, internetReachability will be printed on screen
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
trooper
Jul 18, 2023 07:12
Can't test out GameActivity and reduce my ANR's without this fixed, hopefully it's high priority.