Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Update NotifService.js #1030

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions example/NotifService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<null>' error)

/* iOS and Android properties */
title: "Local Notification", // (optional)
Expand Down Expand Up @@ -116,4 +116,4 @@ export default class NotifService {
cancelAll() {
PushNotification.cancelAllLocalNotifications();
}
}
}