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

Frame navigate, while android Activity is paused, crash · Issue #1389 · NativeScript/NativeScript · GitHub

Frame navigate, while android Activity is paused, crash #1389

Description

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);
};

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