onpause & onresume event not firing on MotoG 1st generation

4 posts, 0 answers
  1. Arpita
    Arpita avatar
    5 posts
    Member since:
    Mar 2015

    Posted 07 Nov Link to this post

    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?

  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 09 Nov Link to this post

    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.

     
  3. Arpita
    Arpita avatar
    5 posts
    Member since:
    Mar 2015

    Posted 10 Nov in reply to Tsvetina Link to this post

    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?

  4. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 14 Nov Link to this post

    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.

     
Back to Top