Skip to content

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

@mike-ense

Description

@mike-ense
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);
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions