3

I'm stuck on a very annoying problem: I own a website and I need the user to visit it from the native Safari app when on iPhone/iPad with iOS 10.

Problems arise when a third-party webapp (that uses the "embedded version" of the mobile browser) has a link to my website. The user clicks the link but my website is opened inside the webapp. It does not open it in an external instance of Safari.

Is there a workaround to open it on Safari? I mean, since I'm not able to change the source code of a given webapp... can I use Javascript on my website for this task?

I've already searched for solutions with many results... but no luck:

None of them works. And if you are curious, the most problematic app I'm talking about is... Instagram. When the users click on a link in that app, it does not open Safari but it stays in an internal webview. Damn!

Community
  • 1
  • 1
TheUnexpected
  • 3,077
  • 6
  • 32
  • 62

1 Answers1

-1

Simply using ion button with href and your able to open link

      <ion-button  *ngIf="user.facebook_url" href="{{ user.facebook_url }}" target="_blank" 
      fill="clear" size="small" color="light" class="ion-no-margin ion-no-padding">
        <ion-icon slot="icon-only" name="logo-facebook"></ion-icon>
      </ion-button>
  • This is not even close to right answer. You're providing ionic specific code, and that too, doesn't work. All it may do is, open the link in a new tab. In no way it will open the link in safari. – Sayed Apr 12 '23 at 05:54