Skip to content

use UNNotificationRequest for iOS

Compare
Choose a tag to compare
@evollu evollu released this 28 Nov 19:24
· 559 commits to master since this release

as iOS 10.1 is deprecating old notification reminder, it is good idea to switch the implementation to new API. This will make new feature in the future easy.

BREAKING CHANGE:
ios: The result of getScheduledNotifications will only contain the notification object you passed when you schedule notification. (now it only returns what was in data property
OLD:

{
   title: 'aaa',
   data: {
        title:'aaa'
   },
   action: null
}

NEW:

{
   title: 'aaa'
}