iOS Question iEventKit (NSCalendarsUsageDescription) Dialog request to the calendar no longer appears

Israel Gallegos

Member
Licensed User
Hello, I need help. A few days ago, the dialog request to the calendar no longer appears. I unistall to app and it install again and nothing :/
*Note:
Previously it did show the dialog box on the first run


My code

Region Attributes:
#Region  Project Attributes
    #ApplicationLabel: My app
    #Version: 1.0.28
    #iPhoneOrientations: Portrait
    #iPadOrientations: Portrait
    #Target: iPhone
    #ATSEnabled: True
    #MinVersion: 11
 
    #PlistExtra:<key>NSCalendarsUsageDescription</key><string>Agrega citas al calendario</string>
#End Region

    store.Initialize("store")
    If store.AuthorizationStatusEvents <> store.AUTHORIZATION_AUTHORIZED Then
      If store.AuthorizationStatusEvents = store.AUTHORIZATION_NOT_DETERMINED Then
       store.RequestAccessEvents
      End If
    End If
 

Attachments

  • IMG_7690.PNG
    IMG_7690.PNG
    281 KB · Views: 102
Last edited:

Israel Gallegos

Member
Licensed User
Hi, I added the code into the "store_AuthorizationGrantedEvents"


Request Access Events:
Sub store_AuthorizationGrantedEvents (Success As Boolean)
    LogColor("StatusEvents: " & store.AuthorizationStatusEvents, Colors.Red)
    If Success = False Then
        Msgbox("Access denied. Please enable it under Settings", "")
    End If
End Sub

The returned value is 0
 

Attachments

  • Captura de pantalla 2024-01-15 a la(s) 9.50.27 a.m..png
    Captura de pantalla 2024-01-15 a la(s) 9.50.27 a.m..png
    11.6 KB · Views: 109
Upvote 0
Top