Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch the compass app from within iPhone app

I'm trying something like this to launch the compass from within my app:

    NSString *stringURL = @"compass://";
    NSURL *url = [NSURL URLWithString:stringURL];
    [[UIApplication sharedApplication] openURL:url];

does anyone know the correct url to use to launch the compass app?

http://wiki.akosma.com/IPhone_URL_Schemes - I'm using this as a reference, but nothing about the compass is posted.

thanks for any help.

like image 775
hanumanDev Avatar asked Aug 08 '11 10:08

hanumanDev


People also ask

How does the Compass App work on iPhone?

Just tap on the GPS coordinates in the Compass app to launch Maps. You then can tap the navigation icon in the bottom left until you turn on compass mode, which will orient the map with magnetic north. Once you know where north is on the map, you can find your target on the map and guesstimate your direction of travel.

Does iPhone have a built-in Compass?

The Compass app comes built-in on every new iPhone, and it's helpful when you want to make sure you're going in the right direction.

What is the Compass App on iPhone called?

Compass∞ on the App Store.

Did Apple remove the Compass App?

With iOS 12, Apple has moved the feature into the new Measure app, completely removing its function in the Compass app. For more help getting the most out of your Apple devices, check out our how to guide as well as the following articles: How to add App Store and iTunes gift cards on iPhone and iPad.


2 Answers

A quick look at Compas.app's Info.plist shows no declaration of custom URL type, which means there is no public way to open it from your app, sorry.

like image 150
Filip Radelic Avatar answered Oct 03 '22 19:10

Filip Radelic


The compas app does not have an app URL.

like image 40
rckoenes Avatar answered Oct 03 '22 17:10

rckoenes