Closed irwansyafani closed 3 years ago
I solved my issue with these :
For Direct Notification :
PushNotificationIOS.addNotificationRequest({
id: 'notificationWithSound',
title: 'Sample Title',
subtitle: 'Sample Subtitle',
body: 'Sample local notification with custom sound',
sound: 'customSound.wav',
badge: 1,
});
For Scheduled Notification :
PushNotificationIOS.addNotificationRequest({
id: 'test',
title: 'title',
subtitle: 'subtitle',
body: 'body',
category: 'test',
threadId: 'thread-id',
fireDate: new Date(new Date().valueOf() + 2000),
repeats: true,
});
To add a comment, be cautious about adding lines to AppDelegate.h and AppDelegate.mm based on document on the main page
anyone know how to solve it?