Skip to content

Unable to show dialog from a modal page #1809

@NordlingDev

Description

@NordlingDev

Reporting from iOS. Calling this function from inside a modal page:

exports.selectPhoto = function() {
  dialogs.action({
    message: "Select new photo",
    cancelButtonText: "Cancel",
    actions: ["Take photo", "Select from Photos"]
  }).then(function (result) {
    console.log(result);
  });
};

Will give me the error:

Warning: Attempt to present <UIAlertController: 0x7cbd3a00> on <UIViewControllerImpl: 0x7b7a88b0> whose view is not in the window hierarchy!

What is this, and how do I fix it?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions