Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Created January 28, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsmith/6d3b079bf09c8bcb2ddf8e4deabad5fa to your computer and use it in GitHub Desktop.
Save wpsmith/6d3b079bf09c8bcb2ddf8e4deabad5fa to your computer and use it in GitHub Desktop.
AppPresser 3 Custom Page Example: How to target a specific platform(Android/iOS) example linking to either Google Maps on Android or Apple Maps on iOS
<div style="padding: 20px; font-size: 2rem;">
<strong>My Company Name</strong><br>
123 Main St<br>
City, ST 12345<br>
<br>
<div *ngIf=" this.platform.is('ios') "><a class="button" onclick="window.open('https://maps.apple.com/?daddr=123+Main+St,+City,+ST+12345', '_system'); return false;">Get Directions</a></div>
<div *ngIf=" !this.platform.is('ios') "><a class="button" onclick="window.open('https://maps.google.com/?daddr=123+Main+St,+City,+ST+12345', '_system'); return false;">Get Directions</a></div>
<br>
<br>
Phone: <a href="tel:+1-123-456-7890">(123) 456-7890</a><br>
Fax: <a href="fax:+1-987-654-3210">(987) 654-3210</a><br>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment