Skip to content

Cordova iOS in-app Post message not responding to window.open when click second time #533

@dijashub

Description

@dijashub

Bug Report

I am using @dpa99c 3.1.0-dev to communicate using postmessage. And it works like a charm in both Android and iOS.. Thanks to you.

But the message I am posting from inapp is a stringify object that has url of an hyperlink to do window.open(url, '_system').

Problem

Below case is from iOS device.
It is all good first click that open to default browser in respective platform.

But for second click once I go back to app and do same thing listener is not receiving messages.

Instead of window.open , console.log to listen message working all the time. Can you please help on this scenario mentioned above.

What is expected to happen?

For every click I get url for hyperlink from in-app browser as a post message and I do window.open I have three links so I i need listener to listen to multiple click

What does actually happen?

Information

@janpio

Command or Code

Environment, Platform, Device

iOS version 12.0 and higher

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions