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
{{ message }}
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
I can reproduce the issue. I'm not sure how it can be resolved, though. Here are my findings and some additional information:
I call ACTION_SEND intent from a fragment to receive onActivityResult (share result) callback
While this fragment is active, Unity activity is halted by the OS (you can see that your game is paused until share intent is finished or canceled); so the fragment has the focus instead of the Unity activity
As far as I understand, the android:configChanges="...|orientation|..." line in Unity's AndroidManifest lets Unity handle the orientation changes manually inside UnityPlayerActivity.java's @Override public void onConfigurationChanged(Configuration newConfig) function
My guess is that this function isn't called when Unity doesn't have the focus (e.g. when share fragment has the focus)
I've tried adding the following function to my fragment but it didn't work:
Description of the bug
Cannot rotate Android device when Share dialog is open
Reproduction steps
Expected: Device rotates
Acutal: Device does not rotate
Note: Behavior does not happen on iOS
Platform specs
Please provide the following info if this is a Unity 3D repository.
Additional info
I have attached a simple Unity project and apk . (Be sure to rename the apk.zip to apk as I cannot attach apk)
Share File.zip
ShareFile.apk.zip
The text was updated successfully, but these errors were encountered: