[AC-3487] Calendar permissions in Titanium SDK for Android 6.0.0 and above.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2016-04-18T06:16:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | Calendars, SDK, Titanium, android |
Reporter | Muhammad Sabir |
Assignee | Shak Hossain |
Created | 2016-04-11T15:24:47.000+0000 |
Updated | 2016-04-19T12:32:32.000+0000 |
Description
Hi,
I'm trying to add events and then reminder to that events by using a native module. In Android 6.0.0 and above, application has to ask user for a permission if application is using native calendars. I'm specifying the permission in tiapp.xml and by a method "requestCalendarPermissions". My application is working perfect for the previous versions of Android but crashing on Android 6.0.0 and above. I think Titanium SDK (currently using 5.2.0) does not has this permission to work with Calendars for Android 6.0.0. Please fix this issue or suggest me some work around so that I can complete my app. I would be grateful.
Hello, Thanks for reporting. Actually Titanium SDK (5.2.0.GA) does have the functionality to work with Calendar Permission for Android 6. Also it is recommended to update SDK to latest stable version (5.2.2.GA). Here is a simple example to try. *Add permissions in tiapp.xml:*
*app.js*
Building and runnig the app on Android 6 show produce console log similar to the following.
Thanks *Environment*: *Device info:* Nexux7 (android 6.0.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.2.GA and 5.2.1.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.4.0.201511241829
Hi again, Actually I'm using a third party module as I want to create recurrent reminders and sometimes I've to delete them within the applications. When I create events without using this module my app works fine but when I use my module it is not working. I'm explicitly asking for calendar permissions from user as well. You can find my test case here, https://www.dropbox.com/s/r8h14gsx5nrss45/Test%20App.zip?dl=0