[aerogear-dev] Cordova push notifications enhancement request

Erik Jan de Wit edewit at redhat.com
Wed Mar 19 12:43:07 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140319/37a14432/attachment.html 


More information about the aerogear-dev mailing list