Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.