AKG
AKG

Reputation: 408

how to load iPhone application from web application

I have web application for mobile (developed in .net), I want to use iPhone maps application from web application( i.e. from web browser on button click)..how to do it? I want to do same in android to.

Upvotes: 1

Views: 416

Answers (2)

codelark
codelark

Reputation: 12334

If you are trying to view a map from a web application (viewed in the mobile browser), simply link to Google maps as you normally would. Some mobile OS's will open their native maps application, and the others will receive Google's mobile-optimized maps website.

Edit:

As Robot K said, the http://maps.google.com URIs will be intercepted on iOS and open the native map application. If you want to force the same behavior on Android, you will have to do user agent detection and use the geo uri scheme documented here.

The user agent detection is to determine whether the link you attempt to load is the http scheme for iOS or the geo scheme for android.

Upvotes: 0

Kris Markel
Kris Markel

Reputation: 12112

I don't know about Android, but this page describes how to construct a URL that will open the iPhone's Maps application.

Upvotes: 1

Related Questions