[aerogear-dev] Cordova push notifications enhancement request

Miguel Lemos miguel21op at gmail.com
Wed Mar 19 13:09:04 EDT 2014


Wait! The damn plugin (vibrate) used to work; now I tested it outside the
notification routine and I noticed it just stopped working. I'll try to
reinstall it...




On Wed, Mar 19, 2014 at 4:55 PM, Miguel Lemos <miguel21op at gmail.com> wrote:

> 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/6a0f2403/attachment.html 


More information about the aerogear-dev mailing list