Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24409] Android: Improve Android 6.0 permission requirements

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-05-05T21:44:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2017-02-16T16:28:42.000+0000
Updated2017-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.

Comments

  1. Gary Mathews 2017-02-20

    master: https://github.com/appcelerator/titanium_mobile/pull/8842
  2. Gary Mathews 2017-05-04

    6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9015
  3. Lokesh Choudhary 2017-05-08

    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

JSON Source