[TIMOB-24409] Android: Improve Android 6.0 permission requirements
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-05T21:44:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2017-02-16T16:28:42.000+0000 |
Updated | 2017-05-08T22:34:25.000+0000 |
Description
- improve how we handle the permission requirements of Android 6.0
- Permissions must be requested during run-time. We should do this automatically for Titanium APIs that need them.
master: https://github.com/appcelerator/titanium_mobile/pull/8842
6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9015
Verified the fix. 1.Checked Titanium.Android.hasPermission() with array of permissions. Returned correct boolean value accordingly if permissions were present or not. 2.Checked Titanium.Android.requestPermissions() with array of permissions. Showed proper permissions dialog for accepting or declining the permission. Also the callback was fired successfully after the permissions were accepted or declined. Closing. Studio Ver: 4.9.0.201704240654 SDK Ver: 6.1.0.v20170508081747 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.2 Appc NPM: 4.2.9 Appc CLI: 6.2.0 Ti CLI Ver: 5.0.12 Alloy Ver: 1.9.11 Node Ver: 6.10.1 Java Ver: 1.8.0_101 Devices: > google Nexus 6 --- Android 6.0.1 > Samsung S3 --- Android 4.4.2