NativeScript: Regression: Back button breaks app on clearHistory: true (android)
So seems like if you have this scenario, the back button breaks the App, it can’t navigate back any more, and it just crashes.
- Create an app using the new version 1.6.0
- Create Page1, Page2 and Page3
- Make Page1 you initial page, and add a button to navigate to Page2 like:
var nav = { moduleName: "./Page2", backstackVisible: true, clearHistory: true }; frame.topmost().navigate(nav) - In Page2, add another button to navigate to Page3, like:
exports.toPage3 = function(){ frame.topmost().navigate("./Page3") } - Once in Page3, try to navigate back using the “Back” button on your device, it just crashes, or you get a blank screen sometimes, I also attached a sample app if you want to use it. sampleapp.zip .
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 23 (8 by maintainers)
Commits related to this issue
- Fixes #1569 — committed to NativeScript/NativeScript by atanasovg 8 years ago
@jeremypele - I have same/similar issue in 3.4.1. Happened once randomly while developing, can’t reproduce, and it is happening in the wild.