forcedotcom / SalesforceMobileSDK-Android

Android SDK for Salesforce

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overlay screen not getting removed and is stuck after sdk upgrade to 11.1.0

hitesh-baid opened this issue · comments

Please fill out the following details:

  1. Version of Mobile SDK Used: 11.1.0
  2. Issue found in Native App or Hybrid App: React Native
  3. OS Version: Android version 13
  4. Device: Google Pixel 7a
  5. Steps to reproduce: upgrade to sdk and try running the app with mobile sync explorer.
  6. Actual behavior: The overlay screen and permission is not getting removed, stays on the screen
  7. Expected Behavior: The overlay warning/message should go away or should be closed.
  8. Error Log:
Screenshot 2023-11-10 at 7 43 54 PM

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.

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"

Tried that but the app is not coming under the special app access list, even if it comes, the app crashes

Could you try again with the latest version of Mobile SDK (12.0) that was just released?