A cocoa method on iOS letting developers access other apps from inside an app.
Questions tagged [openurl]
376 questions
0
votes
3 answers
OpenURL to a file in NSBundle
I have a file, which i want to open in safari (or call it view in safari).
I add this file to my bundle resources.
and do the following:
NSString *path = [[NSBundle mainBundle] pathForResource:@"tryFile.txt" ofType:nil inDirectory:nil];
NSURL *url =…

Nikita P
- 4,226
- 5
- 31
- 55
0
votes
1 answer
UIApplication prevent app moving to foreground if other app calls openURL: with valid URL
Can we prevent application moving to foreground if other apps call openURL: with valid URL. I need only save data from URL; caller application should stay in foreground and receiver app should stay in background.
For example: first app calls to…

Ivan Lisovyi
- 538
- 5
- 13
0
votes
2 answers
Is a telephone number with "+" different from one without "+"?
Is a telephone number with "+" different from one without "+"?
I mean that a number such as A: +1(510)234-567 and B:1510234567. Is it the same number for the call? I want to make a call which number to get from the address book. The format is A, and…

HamasN
- 524
- 1
- 5
- 20
0
votes
1 answer
openUrl in landscape mode in iphone
I am trying to open the url through safari in landscape mode. But still not able to do it.
Following is the code.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.abc.com"]];
[[UIApplication…
bugs_bugs
0
votes
1 answer
UIApplication get name of app which will handle URL
Is it possible to retrieve the name of the app which will handle a specific URL?
In other apps I saw "Open Link in Safari" and if you click, YouTube or whatever else will launch. I don't really like this behavior and I'd like the get the…

Julian F. Weinert
- 7,474
- 7
- 59
- 107
0
votes
1 answer
UIApplication openURL - get rid of %0A
Issue:
I'm parsing some info from an xml file (RSS feed) into a feed reader I'm developing. When trying opening news URL with Safari [[UIApplication sharedApplication] openURL:url] is not working.
I suspect the xml file itself is not well prepared.…

Daemon Painter
- 3,208
- 3
- 29
- 44
0
votes
1 answer
IPHONE: How do I override the "cancel\call popup-box" that comes when dialling a number programmatically?
I'm currently developing a project that at some part calls a number of the user's choosing. I use the snippet below to call the number.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:newNumberString]];
The problem is that the box…

Madoc
- 1,605
- 3
- 17
- 30
0
votes
1 answer
Facebook SDK 3.2 for iOS 6: Can't login -> openURL not called / AppId & URL is correct
Hiho
I have a big problem with the new Facebook SDK 3.2 for iOS 6 (I use the iPhone simulator for testing). I've implement the Facebook Login exactly like described in the how-to. The only difference is that I didn't implement it within the app…

oplagon
- 11
- 3
0
votes
1 answer
ios app hits straight shouldstartloadwithrequest after coming from background instead
I have a webview in my mainviewcontroller and i am laoding a webpage in viewdidload method as below:
- (void)viewDidLoad
{
[super viewDidLoad];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[_loginWebView…

Jatin
- 1,668
- 2
- 16
- 23
0
votes
1 answer
Facebook button going to facebook iPhone app, but not loading correct facebook page
Possible Duplicate:
Custom URL scheme for new Facebook iOS app
I have a Facebook button in my iPhone app. When it gets touched I want it to go to the Facebook iPhone app and load a facebook page if the Facebook iPhone app is on the device, if…

SirRupertIII
- 12,324
- 20
- 72
- 121
0
votes
4 answers
can't dial call from programmatically in iphone
I have done call programmatically like this.
NSString *phoneNumber = [[self.arrCategory objectAtIndex:0]objectForKey:@"MOBILE"];
NSString *phoneURLString = [NSString stringWithFormat:@"tel:%@", phoneNumber];
NSURL *phoneURL = [NSURL…

jinal
- 69
- 7
0
votes
1 answer
How to launch the app that launched my app
I'm using this function in my app, to handle calls from other applications:
(BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation
I need to understand how…

taxman
- 501
- 11
- 21
0
votes
1 answer
Is there a way to start a hangout from another app with openURL: on the Google+ app for iPhone?
I'm building an app that needs to start a video conference from an iPhone.
They way i've implemented it is to first check if Skype is installed, if it is, i start video conferencing with skype.
If not, im checking if the Google+ app installed. And…

bogen
- 9,954
- 9
- 50
- 89
0
votes
2 answers
iOS, Launching Mail client in NON story mode. Howto?
I have a button on my app that allows the User to send an email with destination address, and BODY already filled out. I'm doing it this way....
[[UIApplication sharedApplication] openURL:];
But this method is launching the Mail app in EDIT mode.…

IrishGringo
- 3,864
- 7
- 37
- 49
0
votes
3 answers
Cocoa - Return to native app after "openURL"
I've an app, that permits me to call to my contacts. I use the following code to do that:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:numberVar]];
The call is made, but the problem is that when I finish the call, the ios don't…

fabio santos
- 275
- 1
- 5
- 15