Skip to content

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

Closed

Description

@NickIliev

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

  1. self-assigned this
    on Jun 29, 2016
  2. hamorphis commented on Jun 29, 2016

    @hamorphis
    Contributor

    This happens on iOS 9+ only.

  3. added a commit that references this issue on Jun 29, 2016
    8dc732c
  4. added this to the milestone on Jun 29, 2016
  5. lock commented on Aug 29, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked and limited conversation to collaborators on Aug 29, 2019
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