Hi Erik, how are you?I already use that plugin (vibration) but it doesn't seem to work under the onNotification handler (I had already tested it before I send the previous message).Anyway: it should be triggered only when the notification arrives at the device, otherwise it's useless I think.Thank youOn Wed, Mar 19, 2014 at 4:43 PM, Erik Jan de Wit <edewit@redhat.com> wrote:_______________________________________________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
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev