navigator.app.exitApp()

865 views
Skip to first unread message

TD Worwo

unread,
Sep 8, 2011, 5:51:44 AM9/8/11
to phonegap
I am using navigator.app.exitApp() intents to exit the Android
application. But it just acts like history.back();

Does anybody can let me know how can I exit the app? Thanks,

Android 2.2 + Phonegap 1.0.0 + JQuery Mobile

Bryce Curtis

unread,
Sep 8, 2011, 5:12:57 PM9/8/11
to phon...@googlegroups.com
Multiple pages in an app are loaded into a new activity for each page.  Thus, exiting the app just exits the current page and shows the previous one.  

Can you create an issue for this bug?

Thanks,

Zorayr Khalapyan

unread,
Sep 8, 2011, 6:47:28 PM9/8/11
to phon...@googlegroups.com
Hi Bryce, 

Would you know how I should handle redirects? For example if page has a link to page B which has a 302 redirect to C, then when I hit the back button from C, I have to go through a blank page before getting to A again. 

I am thinking of modifying PG native code to handle this, but if there is a way to do this via JavaScript I would prefer that solution more. 

Thanks,
Zorayr


--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com

dsalah

unread,
Sep 22, 2011, 7:58:18 PM9/22/11
to phonegap
Hello,
I have the same problem
I want to exit the App totally not only the current page.
Is there any way to do that?

Vijesh Vijayan

unread,
Sep 23, 2011, 5:58:44 AM9/23/11
to phon...@googlegroups.com
Hi,

I'm using device.exitApp() and its working perfectly.

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
Thanks & Regards
Vijesh Vijayan

maria guadalupe rangel perez

unread,
Sep 23, 2011, 10:26:06 AM9/23/11
to phon...@googlegroups.com
bueno solo quiero agradeser por  resivirme en su grupo


 
2011/9/23 Vijesh Vijayan <kvvi...@gmail.com>

dsalah

unread,
Sep 25, 2011, 8:11:44 AM9/25/11
to phonegap
I use device.exitApp() as Vijesh Vijayan suggests, but
I got usePolling prompt and I couldn't remove these messages
I delete device.exitApp() but still Polling messages displays.
any help in remove usePolling messages?:(

Bryce Curtis

unread,
Sep 29, 2011, 11:05:51 PM9/29/11
to phon...@googlegroups.com
Zorayr,

I checked in a fix for this yesterday.  It will be in v1.1 to be available in a few days.

Bryce 
Reply all
Reply to author
Forward
0 new messages