Page 1 of 1

notification callback is not firing when app is in background mode.

Posted: Tue Nov 04, 2014 9:52 am
by Govind Chunchula

Hi,

Notification callback of the app is not firing when application is running in background or when my mobile is in power off mode.

Notifications are coming but callback is not firing. Messages not reaching to the app. We are doing the message append based on the notifications callback only. So we are missing these messages in the app.

Can you please suggest any solution for this ?


notification callback is not firing when app is in background mode.

Posted: Tue Nov 04, 2014 11:02 am
by Evgene Karachevtsev

Hello Govind,

Work of phonegap application in the background is not possible by default. To realize this you should use special plug-ins. Please look at the discussion here:
http://stackoverflow.com/questions/14...


notification callback is not firing when app is in background mode.

Posted: Tue Nov 04, 2014 12:02 pm
by Govind Chunchula

Hi Evgene,

Thanks for the update. I will check and add the plugin if needed.

Thanks.


notification callback is not firing when app is in background mode.

Posted: Tue Nov 04, 2014 1:11 pm
by Govind Chunchula

Hi Evgene,

Can't we use Resume event in appery ?

When it calls, we can fetch data from server for updates. Please suggest.

Thanks.


notification callback is not firing when app is in background mode.

Posted: Tue Nov 04, 2014 1:37 pm
by Evgene Karachevtsev

Govind,

Yes, you can use this phonegap event, as it is specified in the docs:
http://docs.phonegap.com/en/3.3.0/cor...