Created
January 28, 2019 22:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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