Cancel local notifications is not working - iOS
See original GitHub issue- React Native: 0.48
- Plugin version: 3.0.1
Tried both, the cancelLocalNotifications({ id })
with a notification object as:
PushNotification.localNotificationSchedule({
id,
title,
message,
date: moment().toDate(),
largeIcon: 'app_icon',
smallIcon: 'app_icon',
color: 'blue',
userInfo: {
id
}
})
Also, tried cancelAllLocalNotifications() without success.
I can confirm that it is working for Android but not for iOS.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
cancelAllLocalNotifications not cl… | Apple Developer Forums
I have a similiar problem. The local notifications is not working correctly in iOS 9. Sometimes my app show notification, sometimes not!
Read more >how to cancel a localNotification with the press of a button in ...
You can cancel a notification using its identifier : let center = UNUserNotificationCenter.
Read more >Scheduling local notifications - a free Hacking with iOS
If the user grants permission, then we're all clear to start scheduling notifications. Even though notifications might seem simple, Apple breaks ...
Read more >Notifications - Expo Documentation
The expo-notifications provides an API to fetch push notification tokens and to present, schedule, receive and respond to notifications.
Read more >Local Notifications: Getting Started - RayWenderlich.com
This tutorial is all about local notifications. ... has an error object that indicates if a problem occurred when scheduling a notification.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the version that worked for me on Android + iOS (with cancel…):
later on:
cancel will work on android
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.