Prio* Doing frameModule.topmost().navigate() when the app is not in the foreground crashes Java
The following page-1.js will crash Nativescript if you press the phone's "home" button as to switch activity away from the program within 5 seconds.
How can this be worked around?
var timerModule = require("timer");
exports.loaded = function(args) {
timerModule.setTimeout(function () {
frameModule.topmost().navigate({ create: function () {
return new pageModule.Page();
}});
},5000);
};
Prio* Doing frameModule.topmost().navigate() when the app is not in the foreground crashes Java
The following page-1.js will crash Nativescript if you press the phone's "home" button as to switch activity away from the program within 5 seconds.
How can this be worked around?
var timerModule = require("timer");
exports.loaded = function(args) {
timerModule.setTimeout(function () {
frameModule.topmost().navigate({ create: function () {
return new pageModule.Page();
}});
},5000);
};