canhazbits
canhazbits

Reputation: 1714

Using x-apple-reminder:// to launch the Reminders app in iOS

Seems simple but I can't make this work.. I want to launch the native Reminders app from my native app.

From what I've read I need to use x-apple-reminder:// URL scheme but it does not launch the Reminders app.

Here's my code:

NSString* reminderUrl = @"x-apple-reminder://";
NSURL *url = [NSURL URLWithString:reminderUrl];
BOOL ok = [[UIApplication sharedApplication] openURL:url];

ok is always NO and nothing happens.

I also tried passing in the Reminder's id (my app created it), but that didn't work. (as in x-apple-reminder://REMINDER_GUID)

I suspect that my problem is with the openURL call.. is there some other option?

Upvotes: 1

Views: 5499

Answers (1)

Yuriy Panfyorov
Yuriy Panfyorov

Reputation: 523

By the way, apparently, Apple is against using undocumented URL schemes, take a look:

http://www.iphonehacks.com/2013/10/launch-center-pro-undocumented-urls-apple-apps.html

Available schemes are documented here:

https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

Upvotes: 4

Related Questions