distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Not able to add event to iPhone 6+ using calendar #281

Closed naveen2803 closed 9 years ago

naveen2803 commented 9 years ago

I am using calender ane to add an event to iPhone 6+ using Calendar.service.addEventWithUI( e ); but I am unable to add.

I have attached a screenshot of what pops up as a result. Could you please help me at this

issue_with_calendar

marchbold commented 9 years ago

Hi, Did the application ay any point ask for permission to access the Calendars? If you deny that dialog then you have to manually go into settings and allow your application access again.

naveen2803 commented 9 years ago

No, the application did not prompt for any permissions related dialog; moreover there was noting under settings where I could set the permissions for calendar for this app.

Is there anything I need to specify in the app-xml for the calendar permissions for IOS?

marchbold commented 9 years ago

Did you check under the following?

Settings / Privacy / Calendars / 
naveen2803 commented 9 years ago

My mistake... I missed to below line of code Calendar.service.requestAccess();

It works as expected...

Thanks :)