A cocoa method on iOS letting developers access other apps from inside an app.
Questions tagged [openurl]
376 questions
2
votes
1 answer
Programmatically make phone call crash in swift 3
Hello I am making a phone call programmatically. The phone number I am receiving from the back end is like 61234567890. It doesn't comes with the +. This is how I open the call.
self.openAppURL(strUrl: "tel://\(selectedEmployeeContact)")
func…

user1960169
- 3,533
- 12
- 39
- 61
2
votes
2 answers
How can i get through Mobile Data Settings Programmatically in iOS Swift 3
i am trying to access the mobile data/ cellular data setting page which lists all the apps that have access to mobile/cellular data or internet.
I tried the below code:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)…

Jay
- 21
- 1
- 2
2
votes
2 answers
How do I register my app to use the openUrl scheme?
How can I register my iPhone app to open when I use openUrl in another app or in a website (in Safari)?
None
2
votes
0 answers
Dynamic Link: openURL isn't called (but only on iOS 8 simulator, it's called) on the first launch after installation
I'm adding dynamic link to my iOS app.
If app was installed, dynamic link works well on iOS 8 and newer.
If app was not installed, on iOS 8 simulator, after installation and on first launch,
- (BOOL)application:(UIApplication *)application…

손지현
- 61
- 9
2
votes
0 answers
iOS Swift Share Extension crashes when I open a URL
How the title says, my Share extension crashes when I open a url.
Xcode says: Thread 3: EXC_BAD_ACCESS (code=1, address=0x10)
I already tried with other url schemes and the result is same.
This is my code:
import UIKit
import…
user6312715
2
votes
2 answers
Couldn't display &(ampersand) in message body in gmail while sending mail
I working on mail sending feature in my app. Here in message body of Gmail app while sending mail from my app. It is not displaying & and ' which are special characters.
Here is the code.
//Suject
NSString *strSubject = @"Subjet";
//…

Mehul Chuahan
- 752
- 8
- 19
2
votes
1 answer
Whatsapp integration and openURL issue in iOS 10
I have integrated whastapp in my iOS app. When I tested it in my iOS 10 device. It crashes with an issue.
Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before…

Ragini Jaisankar
- 21
- 2
2
votes
1 answer
How to open any app from standalone iMessage app
If we have a host app, then we can open Safari with openURL method:
[self.extensionContext openURL:[NSURL URLWithString:@"http://google.com"] completionHandler:nil];
But what if we have standalone iMessage app? Is there any trick to open another…

Kirill Pyulzyu
- 381
- 2
- 11
2
votes
1 answer
Can't use canOpenUrl for InterApp communication
I would like to communicate between two Apps installed on the same phone. In order to do this, I read many official documents to understand that I have to implement a Custom URL Scheme.
Before iOS 9, it seems that we have to add a URLType in…

HungCLo
- 442
- 2
- 6
- 21
2
votes
2 answers
What does the Swift 2 method signature for application:openURL:options: look like?
I'm working on the Swift version of an app that handles custom URL schemes.
The method you need to implement changed in iOS 9.
The Objective-C version of the method works fine in an Objective-C app:
- (BOOL)application:(UIApplication *)app
…

Duncan C
- 128,072
- 22
- 173
- 272
2
votes
0 answers
iOS - Opening a specific page in Settings app using openURL
We know that on iOS 8 and above, we can direct users to the Settings app by using
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
When this method is called, the user will be directed to our…

SeaJelly
- 1,738
- 1
- 15
- 30
2
votes
2 answers
Unable to call AppDelegate openURL( ) while using the Dropbox SDK
I'm trying to add Dropbox authentication to my app, but it's showing me this error:
DropboxSDK: app delegate does not implement application:openURL:sourceApplication:annotation:
Below is the code in my app delegate:
let dbSession =…

Ankita Shah
- 2,178
- 3
- 25
- 42
2
votes
1 answer
image button opening another url
I'm working on a project where I want to have an image as a button, and when pressed it should open another URL.
I've managed to open another URL with just plain text by using this:
Page2
I've tried these 2 ways:
This one…

Mr Riksson
- 560
- 3
- 10
- 29
2
votes
2 answers
Send authentication token to Safari from iOS App to Safari
I have some URLs in my app which takes the user to Safari browser through openURL API.
My aim is to sent the auth token to Safari from the app, so that user will be logged in by using this token. Our server requires this ticket to be sent as part…

anoop4real
- 7,598
- 4
- 53
- 56
2
votes
3 answers
openURL returns false but app is opening successfully
Can anyone think of an explanation for a case where openURL returns false but the app is opened successfully?
NSString *appUrlPathStr = @"";
NSURL *appUrlPath = [NSURL URLWithString:appUrlPathStr];
if([[UIApplication sharedApplication]…

Roy K
- 3,319
- 2
- 27
- 43