2

For example, it's for promotions or events. Therefore I want users not able to leave our app. For iOS, i guess I can make a frame to physically block the main button. But for Android, i don't know how.

Sunny Chow
  • 432
  • 3
  • 13

1 Answers1

0

This is currently not possible. It is scheduled to be included in the upcoming L release. See Task locking.

"The L Developer Preview introduces a new task locking API that lets you temporarily restrict users from leaving your app or being interrupted by notifications. This could be used, for example, if you are developing an education app to support high stakes assessment requirements on Android. Once your app activates this mode, users will not be able to see notifications, access other apps, or return to the Home screen, until your app exits the mode."

Litrik De Roy
  • 823
  • 5
  • 9