This is a migrated thread and some comments may be shown as answers.

onpause & onresume event not firing on MotoG 1st generation

3 Answers 29 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arpita
Top achievements
Rank 1
Arpita asked on 07 Nov 2016, 11:50 AM

Hi,

I am using Cordova 4.0.0 version for my app. Unfortunately, onpause & onresume events not working on MotoG (Android version 5.0.2), but its working on Note3 & other devices with same Android version. I want to restart my app, if it comes to foreground after 15 mins or more. Can somebody please tell me the solution for this?

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 09 Nov 2016, 01:51 PM
Hi Arpita,

Is it possible that the app is killed on the Moto G when you try to put it in the background? Does the app do an initial load when you bring it back? I see some reports in other forums about Moto G killing apps automatically.

Just in case, you could try updating the Cordova version that you are using to see if there is an improvement. 

Regards,
Tsvetina
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Arpita
Top achievements
Rank 1
answered on 10 Nov 2016, 06:53 AM

Hi Tsvetina,

Actually, yes.. when I put app in background & open other apps especially Chrome browser in device & after that bring my app back to foreground then the app initializes from starting. For testing, I opened debugger for device, & did the same steps, what I saw is the app is automatically killed after some time, if I open other apps after putting it in background.

I tried this on Samsung Note 3 (OS 5.0.2) & MotoG (OS 5.0).
I am using Cordova 4.0 in my app, if I upgrade it to latest version, does it affects the application?

0
Tsvetina
Telerik team
answered on 14 Nov 2016, 01:04 PM
Hi Arpita,

Changing the Cordova version could trigger some differences in behavior, so you should definitely test your app before publishing it if you update the Cordova version. In most cases, however, these differences would be very few or none at all.

Regards,
Tsvetina
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Apache Cordova
Asked by
Arpita
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Arpita
Top achievements
Rank 1
Share this question
or