Israel Gallegos Member Licensed User Longtime User Jan 11, 2024 #1 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 Code: Copy #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 281 KB · Views: 455 Last edited: Jan 15, 2024
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 Code: Copy #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
Erel B4X founder Staff member Licensed User Longtime User Jan 14, 2024 #2 Please use [code]code here...[/code] tags when posting code. What is the output of: Code: Copy Log(store.AuthorizationStatusEvents) Upvote 0
Please use [code]code here...[/code] tags when posting code. What is the output of: Code: Copy Log(store.AuthorizationStatusEvents)
Israel Gallegos Member Licensed User Longtime User Jan 15, 2024 #3 Hi, I added the code into the "store_AuthorizationGrantedEvents" Code: Copy 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 11.6 KB · Views: 573 Upvote 0
Hi, I added the code into the "store_AuthorizationGrantedEvents" Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jan 16, 2024 #4 0 = not determined Do you see the msgbox? Make a test and change the package name. Do you see the permission dialog? Upvote 0
0 = not determined Do you see the msgbox? Make a test and change the package name. Do you see the permission dialog?
Israel Gallegos Member Licensed User Longtime User Jan 16, 2024 #5 I'm afraid not, I have two different packages but neither of them shows the msgBox Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2024 #6 I've updated the library and examples: https://www.b4x.com/android/forum/threads/ieventkit-calendar-events-and-reminders.76357/ Upvote 0
I've updated the library and examples: https://www.b4x.com/android/forum/threads/ieventkit-calendar-events-and-reminders.76357/
Israel Gallegos Member Licensed User Longtime User Jan 17, 2024 #7 Excellent!! Now, the msgBox is displayed, Thanks Upvote 0