I use LocalNotification to display push notifications from firebase.
Sometimes I need to save more data to process the corresponding message.
This code prevents that.
Why id must always be of the number?
var id = opts.id;
if (typeof id === "number") {
return
} else {
return opts.id = LocalNotificationsCommon.generateNotificationID();
}
I use LocalNotification to display push notifications from firebase. Sometimes I need to save more data to process the corresponding message. This code prevents that. Why id must always be of the number?