You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Binh An Tran (Created) (JIRA)" <ji...@apache.org> on 2011/12/08 10:31:39 UTC

[jira] [Created] (CB-108) Add "exitApp" for WP7 to quit app programmatically

Add "exitApp" for WP7 to quit app programmatically
--------------------------------------------------

                 Key: CB-108
                 URL: https://issues.apache.org/jira/browse/CB-108
             Project: Apache Callback
          Issue Type: New Feature
          Components: WP7
    Affects Versions: 1.2.0
         Environment: Phonegap 1.2, WP7
            Reporter: Binh An Tran
            Assignee: Jesse MacFadyen


For navigation between pages in the app, we need to catch the "backbutton" event. However, in the "Home Page", user should be able to quit the app when click on "Back Button". In Android, we can quit the app by calling "exitApp" method, but this method doesn't exist in WP7, so it's difficult to quit the app programmatically.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-108) Add "exitApp" for WP7 to quit app programmatically

Posted by "Colin Eberhardt (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181211#comment-13181211 ] 

Colin Eberhardt commented on CB-108:
------------------------------------

There is no way to programmatically exit a WP7 application. See the following thread for details:

http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/8961eac4-880d-4c61-9bd5-8771347514ab

There are workarounds, such as throwing an exception:

http://www.pchenry.com/Home/tabid/36/EntryId/345/The-way-to-Exit-a-WP7-app-just-seems-wrong-to-me-is-it-just-me.aspx

But these are very hacky and would probably cause your application to fail marketplace certification.

When the users hits the back-button from the "home page" the framework itself will take care of exiting the application. All you have to do is correctly manage your subscription to the back button as described in this blog post:

http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/

I would close this issue.

                
> Add "exitApp" for WP7 to quit app programmatically
> --------------------------------------------------
>
>                 Key: CB-108
>                 URL: https://issues.apache.org/jira/browse/CB-108
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: WP7
>    Affects Versions: 1.2.0
>         Environment: Phonegap 1.2, WP7
>            Reporter: Binh An Tran
>            Assignee: Jesse MacFadyen
>              Labels: backbutton, quit, wp7
>
> For navigation between pages in the app, we need to catch the "backbutton" event. However, in the "Home Page", user should be able to quit the app when click on "Back Button". In Android, we can quit the app by calling "exitApp" method, but this method doesn't exist in WP7, so it's difficult to quit the app programmatically.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-108) Add "exitApp" for WP7 to quit app programmatically

Posted by "Jesse MacFadyen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen resolved CB-108.
--------------------------------

    Resolution: Invalid
    
> Add "exitApp" for WP7 to quit app programmatically
> --------------------------------------------------
>
>                 Key: CB-108
>                 URL: https://issues.apache.org/jira/browse/CB-108
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: WP7
>    Affects Versions: 1.2.0
>         Environment: Phonegap 1.2, WP7
>            Reporter: Binh An Tran
>            Assignee: Jesse MacFadyen
>              Labels: backbutton, quit, wp7
>             Fix For: 1.6.0
>
>
> For navigation between pages in the app, we need to catch the "backbutton" event. However, in the "Home Page", user should be able to quit the app when click on "Back Button". In Android, we can quit the app by calling "exitApp" method, but this method doesn't exist in WP7, so it's difficult to quit the app programmatically.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-108) Add "exitApp" for WP7 to quit app programmatically

Posted by "Jesse MacFadyen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen updated CB-108:
-------------------------------

    Fix Version/s: 1.6.0
    
> Add "exitApp" for WP7 to quit app programmatically
> --------------------------------------------------
>
>                 Key: CB-108
>                 URL: https://issues.apache.org/jira/browse/CB-108
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: WP7
>    Affects Versions: 1.2.0
>         Environment: Phonegap 1.2, WP7
>            Reporter: Binh An Tran
>            Assignee: Jesse MacFadyen
>              Labels: backbutton, quit, wp7
>             Fix For: 1.6.0
>
>
> For navigation between pages in the app, we need to catch the "backbutton" event. However, in the "Home Page", user should be able to quit the app when click on "Back Button". In Android, we can quit the app by calling "exitApp" method, but this method doesn't exist in WP7, so it's difficult to quit the app programmatically.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira