Skip to content

iOS - detect URI scheme links/problem with window.open() - detecting it #382

@PepaZapletal

Description

@PepaZapletal

Hi,

I'm trying to detect a click on the URI scheme link button.

Please look at the screenshot below. On the web is for example a button "Navigovat" and after click it will open in a new browser tab maps URL "https://mapy.com/cs/zakladni?x=17.381604794179054&y=50.118149273062926%2C"

The button with the phone icon should open the phone dial.

On Android, I'm using "requestInterceptor" and it's working. I can detect the click.

But it's not working on iOS.

Can you help me with that?

Image

EDIT: this is code from web:

      // MAPY.CZ
      let x = uvg.getUvgValue('%U.A.sour_2WGS_tecka%')
      let y = uvg.getUvgValue('%U.A.sour_1WGS_tecka%')
      let navigationMapy = window.open(
        'https://mapy.cz/zakladni?x=' +
          x +
          '&y=' +
          y +
          '%2C&z=17&source=coor&id=' +
          x +
          '%2C' +
          y,
        '_blank'
      )
      if (navigationMapy === null) {
        blockingWindowsAlert()
      } else {
        navigationMapy.focus()
      }

Is the code correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions