hanumanDev
hanumanDev

Reputation: 6614

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.

Upvotes: 5

Views: 899

Answers (3)

Filip Radelic
Filip Radelic

Reputation: 26683

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.

Upvotes: 4

Roger
Roger

Reputation: 15813

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

What makes you think there is one?

I do not believe the compass app registers any URL scheme. This is completely optional from the developers point of view and is not implemented for all applications.

Upvotes: 1

rckoenes
rckoenes

Reputation: 69469

The compas app does not have an app URL.

Upvotes: 1

Related Questions