diff --git a/example/NotifService.js b/example/NotifService.js index 086f59d80..5d7cba295 100644 --- a/example/NotifService.js +++ b/example/NotifService.js @@ -59,8 +59,8 @@ export default class NotifService { /* iOS only properties */ alertAction: 'view', // (optional) default: view - category: null, // (optional) default: null - userInfo: null, // (optional) default: null (object containing additional notification data) + category: '', // (optional) default: empty string + userInfo: {}, // (optional) default: {} (using null throws a JSON value '' error) /* iOS and Android properties */ title: "Local Notification", // (optional) @@ -116,4 +116,4 @@ export default class NotifService { cancelAll() { PushNotification.cancelAllLocalNotifications(); } -} \ No newline at end of file +}