IOS Cancelling Local Notifications

后端 未结 1 1184
忘了有多久
忘了有多久 2021-01-05 14:06

I dont like asking vague questions but I couldnt exactly tell what the problem is.

In my app I set some daily local notifications. Shooting everyday at 200PM. I late

相关标签:
1条回答
  • 2021-01-05 14:55

    Uninstalling the app will remove the local notifications, although some people have reported that they are cached for up to 24 hours (so if you delete the app, don't reinstall it for more than 24 hours) See here for more details.

    Otherwise, if you still have access to the code you can cancel all local notifications like this:

    [[UIApplication sharedApplication] cancelAllLocalNotifications];
    
    0 讨论(0)
提交回复
热议问题