Skip to content

cancelAllLocalNotifications has been deprecated from iOS 10 #201

Closed
@Dallas62

Description

@Dallas62

Hi,

This issue refer to: zo0r/react-native-push-notification#1716

The API of iOS "cancelAllLocalNotifications" has been deprecated from iOS 11, so it doesn't not work from iOS 11 or above.

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:

    Schedules a local notification for delivery at its encapsulated date and time.
    Deprecated

  • presentLocalNotificationNow

    Presents a local notification immediately.
    Deprecated

  • cancelLocalNotification

    Cancels the delivery of the specified scheduled local notification.
    Deprecated

  • cancelAllLocalNotifications

    Cancels the delivery of all scheduled local notifications.
    Deprecated

  • scheduledLocalNotifications

    All currently scheduled local notifications.
    Deprecated

cc @Naturalclar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions