Closed Dallas62 closed 3 years ago
@Dallas62 thanks for the information! I'll add removeAllPendingNotificationRequests method for next version and deprecate cancelAllLocalNotifications method.
I'll also work on other deprecated methods as well
@Dallas62 I've added new methods that uses UNNotification instead of UILocalNotification in v1.7.0 :tada: I plan to remove the deprecated methods in the next major version of this repo. There will be some modification needed in the https://github.com/zo0r/react-native-push-notification side, just fyi :)
Thanks for this changes! I will check that ASAP 😉
Hi, @Dallas62 @Naturalclar thanks for your works. I have a question, when I build my app, I get warnings in file 'RNCPushNotificationIOS.h', is this ok?
'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest
'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings
"@react-native-community/push-notification-ios": "^1.8.0" "react-native-push-notification": "^7.4.0"
Hi,
This issue refer to: https://github.com/zo0r/react-native-push-notification/issues/1716
Here the replacement method: https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649509-removeallpendingnotificationrequ
This is also probably the case for: https://developer.apple.com/documentation/uikit/uiapplication?language=objc
scheduleLocalNotification
:presentLocalNotificationNow
cancelLocalNotification
cancelAllLocalNotifications
scheduledLocalNotifications
cc @Naturalclar