Hi Miguel,
You could install a cordova plugin for that
https://github.com/apache/cordova-plugin-vibration
or
org.apache.cordova.vibration
then put this in the onNotification handler:
navigator.notification.vibrate(time)
if (e.coldstart) {
} else {
}
This is android specific, it’s set to true when the application was not active not even in the background and the system started the app to respond to the notification.
Hope that helps,
Erik Jan