forked from agamemnus/cordova-plugin-xapkreader
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Runtime permissions request (for Android 6 only)
In Android 6 (and only Android 6) we need WRITE_EXTERNAL_STORAGE permission in order to read the OBB file. This is a known Android 6 bug; the OBB file is supposed to be part of the app's internal storage. See https://code.google.com/p/android/issues/detail?id=197287 In Android target api >= 23, WRITE_EXTERNAL_STORAGE is considered part of the "dangerous" STORAGE permissions group. So, instead of asking the user to grant it when the app is installed/upgraded, we have to prompt the user for it at runtime. That's what this patch adds.
- Loading branch information
Showing
1 changed file
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters