Issue logged from Allan Krayer on 23-May-2016 1:34:11 PM (ticket)
When app is suspended with setting the currentPage to show modalPage the app is throwing an error onResume:
JavaScript error:
file:///app/tns_modules/ui/page/page.js:279:98: JS ERROR Error: This value is not a native object.
code to reproduce the behavior:
app.ts
import application = require("application");
import frameModule = require("ui/frame");
application.onSuspend = function () {
console.log("Application suspended.");
var currentPage = frameModule.topmost().currentPage;
currentPage.showModal("./login-page", true, function closeCallback() {
console.log("modal page closed");
}, true);
}
application.start({ moduleName: "main-page" });
Create simple main-page and login-page in your main app directory.
Tested under Android (working) and iOS 9.3 (crashing) - issue noticed since last update 2.0.1 (worked with earlier version)
edit. reproduced with version 2.0.0 as well!
client log file :
660fc0b7-e807-4772-879b-f460bfe172c8_Log.zip
Reactions are currently unavailable
Issue logged from Allan Krayer on 23-May-2016 1:34:11 PM (ticket)
When app is suspended with setting the currentPage to show modalPage the app is throwing an error onResume:
code to reproduce the behavior:
app.ts
import application = require("application"); import frameModule = require("ui/frame"); application.onSuspend = function () { console.log("Application suspended."); var currentPage = frameModule.topmost().currentPage; currentPage.showModal("./login-page", true, function closeCallback() { console.log("modal page closed"); }, true); } application.start({ moduleName: "main-page" });Create simple main-page and login-page in your main app directory.
Tested under Android (working) and iOS 9.3 (crashing) - issue noticed since last update 2.0.1 (worked with earlier version)
edit. reproduced with version 2.0.0 as well!
client log file :
660fc0b7-e807-4772-879b-f460bfe172c8_Log.zip