[aerogear-dev] Cordova push notifications enhancement request

Miguel Lemos miguel21op at gmail.com
Wed Mar 19 12:55:35 EDT 2014


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 you


On Wed, Mar 19, 2014 at 4:43 PM, Erik Jan de Wit <edewit at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140319/690275e3/attachment-0001.html 


More information about the aerogear-dev mailing list