Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    21
    Vote Rating
    0
    mystere13 is on a distinguished road

      0  

    Default Answered: Background job (applicationDidEnterBackground)

    Answered: Background job (applicationDidEnterBackground)


    Hi,

    Is there an iOS applicationDidEnterBackground() alternative for Sencha?

    I need my app to do some job and polling while it's in background

    Thank you

    Jo


  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

  3. #3
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Answers
    3
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi, not in Sencha but in Phonegap you can use the pause and resume events:
    http://docs.phonegap.com/en/2.3.0/co....md.html#pause

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    21
    Vote Rating
    0
    mystere13 is on a distinguished road

      0  

    Default


    Thank you guys

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    21
    Vote Rating
    0
    mystere13 is on a distinguished road

      0  

    Default


    Somebody has an example sending an alert while app is paused?

    I loaded cordova-2.2.0.js, added onPause() method in my index.html, tried to lauch some alert() or Ext.device.Notification.... no success...

  6. #6
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    Put this in your app.js launch function:

    Code:
    var onPause = function(){
           alert();
    }
    document.addEventListener("pause", onPause, false);

  7. #7
    Sencha User
    Join Date
    Sep 2012
    Posts
    21
    Vote Rating
    0
    mystere13 is on a distinguished road

      0  

    Default


    "resume" ?

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi