url-scheme

Error launching native application from web app - iOS - URL can't be shown

佐手、 提交于 2019-12-10 15:44:47
问题 I'm running into a bit of trouble trying to call my native iOS application from my web app (apple-mobile-web-app-capable). Whenever I'm in Safari pressing the button to open my app with a custom url scheme, that works just fine. However, when I've added it to the home screen I get stuck with the error: The URL can't be shown. Redirecting to http or https works fine but if I call mysupercustomurlscheme:// I get the error message above. I've tried opening it by document.location.href, window

Custom URL Scheme for iOS App when not backgrounding

和自甴很熟 提交于 2019-12-10 15:37:22
问题 I have set up a custom deep-linking iOS URL scheme for my app, and I listen for it in - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { I parse the URL and send a notification using NSNotificationCenter , with the URL as the object, to the appropriate class to handle the URL. This all works great when the app is "backgrounded" but when the app is fully closed out of multitasking, it seems like the

Is it possible to test whether a user's browser/OS supports a given type of link using javascript?

ぐ巨炮叔叔 提交于 2019-12-10 14:07:13
问题 Is it possible to test whether a user's OS/browser supports a given url scheme using javascript (or anything else)? For example, mailto: isn't setup on most user's computer that only use webmail. Would it be possible to somehow catch attempts to click a mailto link and pop up a more descriptive explanation than the browser error message? 回答1: Would it be possible to somehow catch attempts to click a mailto link and pop up a more descriptive explanation than the browser error message? I don't

App crashes when not backgrounded and opened using URL Scheme

 ̄綄美尐妖づ 提交于 2019-12-10 12:24:44
问题 My Application opens fine using the URL Scheme when it is open or running in the background, but if I quit the app, (not running in background or foreground) and then try to open it using the URL Scheme, it crashes immediately. Code to OpenURL from Extension: var url: NSURL = NSURL(string: "lifeguard://emergency")! self.extensionContext?.openURL(url, completionHandler: nil) Code to handle URL: func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?,

How to check for custom url scheme on iphone?

对着背影说爱祢 提交于 2019-12-09 17:07:05
问题 I want to use custom url schemes in my app, for example calling navigons mobile navigator. First of all I want to check whether navigon is installed or at least whether the custom url scheme "navigon://" has already been registered. Any Ideas? Thanks a lot. 回答1: Have a look at UIApplication's - (BOOL)canOpenURL:(NSURL *)url 来源: https://stackoverflow.com/questions/2716508/how-to-check-for-custom-url-scheme-on-iphone

Pass data between two Apps by url scheme in swift?

假如想象 提交于 2019-12-09 15:11:51
问题 There are two test Apps called Sender & Receiver They communicate with each other by Url Scheme. I would like to send a String from Sender to Receiver, is that possible? Detail about the String: I both create Textfields in Sender and Receiver, I would text some String on Sender Textfield. When I click button, the String will show on the Receiver Textfield. It seems that I have to implement NSNotificationCenter.defaultCenter().postNotificationName in my Apps Receiver Here is my App Receiver

Launch app if installed or redirect to download

Deadly 提交于 2019-12-09 12:14:40
问题 On every repo, GitHub has a button that is labelled "Clone in Desktop" (example: https://github.com/github/developer.github.com). If you have GitHub for Mac installed, the href is something like: github-mac://openRepo/https://github.com/github/developer.github.com This opens GitHub for Mac and offers to clone the repo. If you don't, the href is: http://mac.github.io` This is a download page for GitHub for Mac. I would like to do something similar on my website: open my app if installed and

Launch App using URL, but OpenUrl Not Called

旧街凉风 提交于 2019-12-09 08:21:36
问题 I have implemented a URL Scheme and use it to pass data to my app by calling method. The entire code is shown as below - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{ // Check the calling application Bundle ID if ([[url scheme] isEqualToString:@"yuvitime"]) { NSLog(@"URL scheme:%@", [url scheme]); NSString * yuvitimeRequestValue = [url query]; NSDictionary * userInfor = [[NSDictionary alloc]initWithObjectsAndKeys:yuvitimeRequestValue, @"YuvitimeRequest", nil];

How to detect if Facebook app is installed on iOS? [duplicate]

旧时模样 提交于 2019-12-09 04:41:01
问题 This question already has answers here : How to check programmatically if an App is installed? (6 answers) How can I determine if a user has an iOS app installed? (4 answers) Closed 6 years ago . On iOS, you can launch the Facebook app and link to a profile by opening a url like this: fb://profile/12345 The only problem is that if the Facebook app isn't installed, nothing happens. Is there a way to detect if the app is installed or if the url scheme fb:// is supported? This would apply

Open Facebook page from Android app?

穿精又带淫゛_ 提交于 2019-12-08 11:26:22
问题 from my Android app, I would like to open a link to a Facebook profile in the official Facebook app (if the app is installed, of course). For iPhone, there exists the fb:// URL scheme, but trying the same thing on my Android device throws an ActivityNotFoundException . Is there a chance to open a Facebook profile in the official Facebook app from code? 回答1: In Facebook version 11.0.0.11.23 (3002850) fb://profile/ and fb://page/ no longer work. I decompiled the Facebook app and found that you