overlay screen not getting removed and is stuck after sdk upgrade to 11.1.0
hitesh-baid opened this issue · comments
hitesh-baid commented
Please fill out the following details:
- Version of Mobile SDK Used: 11.1.0
- Issue found in Native App or Hybrid App: React Native
- OS Version: Android version 13
- Device: Google Pixel 7a
- Steps to reproduce: upgrade to sdk and try running the app with mobile sync explorer.
- Actual behavior: The overlay screen and permission is not getting removed, stays on the screen
- Expected Behavior: The overlay warning/message should go away or should be closed.
- Error Log:
After investigating the code seems like the message is coming from shouldAskOverlayPermission() method in class SalesforceReactActivity.java, after removing this check and testing locally the app works fine.
Wolfgang Mathurin commented
In debug build, you need to grant overlay permission to your application.
Go to Setting --> Select Apps ---> Special App Access ---> Display over other apps ---> Pick you app and enable "Allow display over other apps"
hitesh-baid commented
Tried that but the app is not coming under the special app access list, even if it comes, the app crashes
Wolfgang Mathurin commented
Could you try again with the latest version of Mobile SDK (12.0) that was just released?