Reputation: 3177
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!
Upvotes: 3
Views: 856
Reputation: 401
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>
Upvotes: -1