FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

iOS onSuspend + showModal() returning "Error: This value is not a native object" · Issue #2173 · NativeScript/NativeScript · GitHub

iOS onSuspend + showModal() returning "Error: This value is not a native object" #2173

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL