Questions tagged [openurl]

A cocoa method on iOS letting developers access other apps from inside an app.

376 questions
16
votes
8 answers

Open URL in Java to get the content

I´m searching for a opportunity to open a url in java. URL url = new URL("http://maps.google.at/maps?saddr=4714&daddr=Marchtrenk&hl=de"); InputStream is = url.openConnection().getInputStream(); BufferedReader reader = new BufferedReader(…
alexander-fire
  • 1,082
  • 4
  • 27
  • 52
14
votes
2 answers

Deep linking redirect to app only works on 2nd attempt on iOS 9 and up only

I have a strange redirect to app issue with our login system in iOS 9 only. Now, I already have abitrary payload allowed and my url schemes are setup properly in my plist file. What happens is this: A user is brought to an SFSafariViewController to…
Bjergsen
  • 207
  • 1
  • 17
14
votes
6 answers

UIApplication.sharedApplication() is unavailable

I just upgraded from XCode 6.4 to Xcode 7 GM and get started to change the code to be compliant with Swift 2. I could not come over the following errors. The project is a keyboard extension and the snippet is from the containing app. let s =…
Ahmet Akkök
  • 466
  • 1
  • 5
  • 13
13
votes
1 answer

Sending a user to gift an app from inside an app doesn't work anymore?

Up until a few days ago, the following URL handler to redirect a user for gifting an app worked: static NSString * const kAppStoreGiftURL = @"itms-appss://buy.itunes.apple.com/" "WebObjects/MZFinance.woa/wa/giftSongsWizard" …
StatusReport
  • 3,397
  • 1
  • 23
  • 31
12
votes
2 answers

Prompt when trying to dial a phone number using tel:// scheme on iOS 10.3

After updating to 10.3, my app no longer automatically dials a phone number after pressing the call button in my app using the openURL: options: completionHandler: method. Instead, a prompt comes up every time to confirm the user's intentions. As…
romero-ios
  • 1,075
  • 1
  • 11
  • 20
12
votes
3 answers

UIApplication sharedapplication openURL not working

I have this method - (IBAction)facebookButtonPress:(id)sender { NSLog(@"fb hit"); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[@"www.facebook.com/asbreckenridge"…
AndrewSB
  • 951
  • 3
  • 11
  • 25
12
votes
2 answers

Extract data from JSON API using Python

I go through this part: How do I extract the data from that URL? I only want to print out the "networkdiff": 58954.60268219. from urllib import urlopen url =…
Python2014
  • 151
  • 1
  • 2
  • 6
11
votes
2 answers

URL for Settings>Privacy>Location Services in iOS 11+?

If locationServicesEnabled() == false, I'm prompting the user to enable their Location Services. The following URL works for 10.0+, redirecting the user to the Settings app and directly to the Location Services screen: URL(string:…
Psylocke
  • 543
  • 1
  • 3
  • 15
10
votes
2 answers

Waze doesn't load navigation from Swift

I integrated Waze into my Swift app, but when I click on the button, Waze opens but nothing happens with the navigation. I juste see the app and that's all, instead of launching the navigation. Here is the code: @IBAction func openWazeAction(_…
cusmar
  • 1,903
  • 1
  • 20
  • 39
10
votes
2 answers

canOpenURL not working in ios 10

The above code is always returning false if {(UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!))} I guess this a problem found in iOS10. I am trying to open google maps app if there in one installed or try to open apple maps so…
datta kadiyala
  • 101
  • 1
  • 4
10
votes
3 answers

iOS 10 Open Settings Crash

So we are creating an iOS app that with the push of a button opens up the device's settings app. I have seen that the method has slightly changed with iOS 10 and Swift 3 so I am using a conditional to check which iOS version the user is on before…
BenSDConway
  • 199
  • 1
  • 12
10
votes
4 answers

Facebook SDK 3.0 IOS 6 callback after login not called

Second Update After doing some more digging, there seems to be a bigger issue at play. The reason why openURL is not fired, is that the app seems to be freezing when it is brought back to the foreground. If I launch my app, click the home button (go…
Archonite
  • 143
  • 1
  • 8
9
votes
2 answers

Basic Facebook / Twitter URL Handlers format

I'm pretty sure an hour after I post this I may find the answer but I've been looking for over an hour already and can't seem to work it out. So here goes.. I'd like to put some simple "Contact Us" links in to my app which opens my profile in one of…
Plasma
  • 2,622
  • 2
  • 20
  • 35
8
votes
3 answers

Why is UIApplication not working in my Mac App

i am using openURL for my iphone apps, works perfectly, but now i want to use it on mac, normally, i use this code [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://google.com"]]; and it works perfectly in Xcode for iPhone…
Cykey
  • 81
  • 1
  • 3
8
votes
7 answers

How to open WIFI setting in Swift 3

I want to open WIFI setting section from my iOS application, my code was working well before Swift 3 with iOS 9.2 if let settingsURL = URL(string: AppSettingsWifiUrl) { UIApplication.shared.openURL(settingsURL) } But after updating it is not…
RJ168
  • 1,006
  • 2
  • 12
  • 22
1
2
3
25 26