A cocoa method on iOS letting developers access other apps from inside an app.
Questions tagged [openurl]
376 questions
8
votes
2 answers
IOS 7 - 2 digits phone number not working
I'm actually trying to call 2 digits phone numbers via openURL (works properly for 3+ digits).
On IOS 6 i was using an hack, like this :
if (self.numberToCall.length < 3) {
self.numberToCall = [NSString stringWithFormat:@"%@?000",…

F. Lambert
- 113
- 5
7
votes
3 answers
UIApplication openURL background
In my iOS 4 application, I need to open a URL from the background, at a time specified from the user. However, for some reason, I cannot launch a URL from the background for some reason. Here is my code for opening a URL:
if (
Richard J. Ross III
- 55,009
- 24
- 135
- 201
7
votes
4 answers
NSWidgetExtensionContext openURL Swift
I have been attempting to implement a button to open my iOS app from its widget. I realize this issue has been beaten to death on the forums but I cannot find explanation with the specific error I am receiving. Perhaps some of you more experienced…

JRystedt
- 215
- 2
- 9
7
votes
4 answers
how to open phone dialler in iOS 9?
I found solution that I need to add some code in info.plist. I did it like below:
LSApplicationQueriesSchemes
tel
still no help.
I get this error:
"-canOpenURL: failed for URL: "tel://4806501708" -…

Hiren Prajapati
- 717
- 3
- 10
- 25
7
votes
2 answers
Open a URL in a certain browser tab/window
From within my Qt application, I would like to open URLs repeatedly in the same browser tab/window. (Kind of "refreshing" this tab programmatically)
Using
QDesktopServices::openUrl(QUrl("http://www.domain.tld"));
opens a new tab/window for every…

Elwood
- 268
- 4
- 9
6
votes
2 answers
CallKit :- Callkit is working but the callee doesn't get the call
I want to develop an SOS application. When I am trying to use URL schema openURL(), it will display an alert but my requirement is to connect the call without any alert or popup while trying to call. So I found a solution using CallKit. When I…

Adarsh KC
- 449
- 3
- 18
6
votes
5 answers
Open URL Schemes in IOS
I have 2 apps, which are meant for different purpose, where I should not allow user to use both apps in same device. How can I check whether other app installed or not?
I think I can do it using Open URL as following by putting app bundle id which…

Sunil Kumar
- 91
- 1
- 1
- 8
6
votes
1 answer
Is it possible for my app to open the Messages app with my iMessage extension activated, on iOS 10?
Specifically, from my app I'd like to open the Messages app and activate my iMessage extension with:
an existing MSConversation (via the remote participant UUID?)
a new MSConversation (via a CNContact?)
a new MSConversation with no remote…

Kevin Packard
- 374
- 4
- 13
6
votes
2 answers
iOS 9.3 freeze after calling openURL
My app freezes after calling openURL on iOS 9.3 builds 13E233 & 13E234.
I tried using dispatch_after but that does not fix the issue.
Here's the code, nothing special.
+ (void)someMethod:(UIView *)senderView {
[Utility…

Nix Wang
- 814
- 10
- 18
6
votes
3 answers
Back To {AppName} Not Showing Up | iOS9 openURL
I'm using the following code:
NSString *customURLString = [NSString stringWithFormat: @"secondApp://?%@", [document fileId]];
NSURL *customURL = [NSURL URLWithString: customURLString];
[[UIApplication sharedApplication] openURL: customURL];
The…

Jude Michael Murphy
- 1,198
- 2
- 12
- 23
6
votes
4 answers
Handling different URL Schemes in iOS (Facebook and Instagram)
I am not even sure how to define the problem but here it goes.
I have an application that uses Facebook SDK for user login. I followed the Facebook authorization tutorial. I am not 100% sure how it works but this part in my "AppDelegate.m" seems…

ardavar
- 510
- 9
- 20
6
votes
1 answer
openURL phone call with Guided Access ON
I have a simple contacts app that is intended to operate in Guided Access / Single App Mode. When the user hits the contact the app initiates a phone call:
[[UIApplication sharedApplication] openURL:phoneURL];
Super simple and works fine with…

josh k
- 268
- 1
- 11
6
votes
1 answer
openURL a local file or force UIDocumentInteractionController to use a specific app
I wish to open a file (stored locally in my app) with another app.
Currently, I am using openURL (there is a dedicated url scheme), and it works fine if I use a file hosted on the internet, but I would like to use a local file so:
a) it works…

lifeIsGood
- 1,229
- 1
- 15
- 22
5
votes
2 answers
UIApplication's openURL Crashes My App
I'm using UIApplication's openURL: method to open a website in Safari. When the user came back to the app (fast switching), it relaunched. It means that my app was quit instead of going to the background.
Does anyone have the same issue? Any ideas?…

nonamelive
- 6,510
- 8
- 40
- 47
5
votes
1 answer
iOS 12 Xcode 10 application:openURL:options: Crash
I recently noticed some issues with my app causing a Warning when uploading to the Appstore:
Invalid Document Configuration - Document Based Apps should support either the Document Browser (UISupportsDocumentBrowser = YES) or implement Open In…

martin010
- 407
- 1
- 5
- 14