I would like to have multiple vibrations on receiving one local push notification in background in react-native. How is it possible?
I tried using https://github.com/zo0r/react-native-push-notification with the following code for a silent push notification:
PushNotification.localNotificationSchedule({
message: "This is one message with three vibrations",
playSound: true,
soundName: "silentSound.wav",
repeatType: "day",
date: new Date(time),
})
Sure, I could schedule multiple notifications in a row, but then I would have also multiple messages.