Tip #3: Implementing the Back button behavior for Android and Windows Phone 8 Apps (Hazem Saleh)

 

cordova windows phone 8 back button

By default, pressing the back button on Windows Phone closes your Cordova-based app, regardless of the current state. Instead, the back button should bring you back to the previous view; except on the main page, where pressing it must suspend the current app (according to the Windows Store . Jan 13,  · Windows App Tutorials: Learn to build better apps for Windows Phone, Windows 8 and Windows 10 How to disable Hardware Back button in Windows Phone App - Windows App Tutorials Sometimes there may be a situation when you wish to prompt the . Introduction Hello everyone, this is the second article about Windows Phone 8 app development using PhoneGap (Cordova). In the last article we talked about the PhoneGap (Cordova) installation process in Visual Studio and how to create our first “Hello world” Windows Phone project using Visual Studio and PhoneGap (Cordova).


javascript - Cordova for windows phone back button handle - Stack Overflow


By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I tried to implement the back button functionality in my wp8 cordova applicationwhich on pressing the hardware back button on device should navigate to the previous page of the app.

I also tried replacing the "window. Whatever I do the app seems to exit out of the app rather than moving backward and the funny thing is when i try this in the IE console it seems to work perfectly.

Cordova windows phone 8 back button lets try another way which should work for wp8. Learn more. First 10 Free. Implementing Back Button functionality for wp8 cordova application Ask Question.

Asked 4 years, 4 months ago. Active 4 years, 4 months ago. Viewed times. Whatever I do the app seems to exit out of the app rather than moving backward and the funny thing is when i try this in the IE console it seems to work perfectly Please help with this guys Thanks in advance. Ranjith Varma. Ranjith Varma Ranjith Varma 1 1 silver badge 10 10 bronze badges. Please add the cordova windows phone 8 back button Lines of code before and after your "addEventListener "backbutton Sithys hi ,can you explain for what you need that.?

The EventListener for the Backbutton will only work if you have a deviceready eventlistener which calls the backbutton eventlistener if the deviceready is successfully fired. Could you please edit that inside your first post and into a code tag?

Sithys Sithys 2, 3 3 gold badges 21 21 silver badges 45 45 bronze badges. Did i understand you correct, the function i posted navigates you to the first page every time you click it independent of the page you actually are? Try this for the onBackKeyDown function: history. Hi already tried can u give the email so that i can send you a sample code so that you can reproduce the problem.

I would like to help you, but i don't have a WP8 mobile Phone. Look into this question and try the solutions given there. Let me know if that doesn't help you. Sign up or log in Sign up using Google, cordova windows phone 8 back button.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. Featured on Meta. Linked Related 5. Hot Network Questions. Question feed, cordova windows phone 8 back button. Stack Overflow works best with JavaScript enabled.

 

backbutton - Apache Cordova

 

cordova windows phone 8 back button

 

If you use Apache Cordova for developing your Android and Windows Phone 8 mobile apps, you may need to exit the app when the user clicks on the back button on the app’s home page, and to navigate back when the user clicks the back button and the current page is not the home page. Oct 21,  · Cordova for windows phone back button handle problem. Windows and Windows phone apps, Windows Phone Development > Developing Universal Windows apps. Apr 21,  · Implementing Back Button functionality for wp8 cordova application. Ask Question 4. I tried to implement the back button functionality in my wp8 cordova application, which on pressing the hardware back button on device should navigate to the previous page of the app. cordova windows-phone-8 browser-history. share | improve this question.