url-scheme

Facebook not open page in app swift 3

纵饮孤独 提交于 2019-12-01 01:22:17
I have a link to my facebook, on my website, which opens in the phone's browser. I would like it to open in the facebook app by default, if the app is installed. I tried to put this code but it does not work. Opens the facebook page always and only via safari and not through the facebook app. If you can help me please. @IBAction func supporto(_ sender: UIBarButtonItem) { let Username = "831831923611308" let appURL = NSURL(string: "fb://profile/\(Username)")! let webURL = NSURL(string: "https://facebook.com/\(Username)")! let application = UIApplication.shared if application.canOpenURL(appURL

Custom URL Scheme for Settings on iOS 10?

萝らか妹 提交于 2019-12-01 01:20:03
问题 Any Idea what happened to the Setting's Custom URL Scheme on iOS 10? Is Apple still giving acess to third-pary apps to launch iOS Settings from the app via URL Scheme on iOS10? The Old URL scheme are not working anymore! 回答1: None of the previous methods for launching the root "Settings" app on iOS 8+ were officially supported by Apple, so unfortunately we can't rely on them. It's also possible that apps that relied on the undocumented behaviors could be rejected during App Store review, even

Make a call from my iPhone application

我只是一个虾纸丫 提交于 2019-11-30 22:56:55
I have implemented the ability to make a call from clicking on a row of descriptive tableview of my hotel; I used the URL scheme by writing the following code in method "didSelectRowAtIndexPath ": NSString *phoneNumber=element.phone; [NSString *phoneNumberScheme = [NSString stringWithFormat:@"tel:%@ ", phoneNumber]; NSlog(phoneNumberScheme); phoneNumberScheme = [phoneNumberScheme stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumberScheme]]; No error! With NSlog I verified that the number was read correctly,

Can Greasemonkey work with the file:// protocol?

旧城冷巷雨未停 提交于 2019-11-30 20:18:21
I have a simple Greasemonkey script: // ==UserScript== // @name hello // @namespace http://www.webmonkey.com // @description A test of accessing documents using file:// protocol // @include http* file* // @grant none // ==/UserScript== alert("hi"); It works fine as long as the URL is of the form http://... How do I also get the script to run on URLs of the form file://... ? In the User Settings section I have http://* and file://* as the included pages and in the Script Settings section I have http* file* in the "Included Pages" box. See "Greaseable schemes" in the Greasemonkey docs .

iOS9: canOpenURL returning false for WhatApp's url scheme

蹲街弑〆低调 提交于 2019-11-30 18:52:25
In my current project I need to share text on whatsapp from iOS app. Here is my code to share text on whatsapp:- NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } but canOpenURL always returning false in iOS9. Is there any iOS9 privacy policy ? Can anyone help me out. Thanks in advance. In iOS 9 you must whitelist any URL schemes your App wants to query in Info.plist under the LSApplicationQueriesSchemes key (an array of strings):

using // instead of protocol:// [duplicate]

邮差的信 提交于 2019-11-30 18:42:16
Possible Duplicate: Is it valid to replace with // in a <script src=“…”>? Absolute URLs omitting the protocol (scheme) in order to preserve the one of the current page Does using //www.example.com in Javascript chose http/https protocol automatically I'm looking at some sample code from facebook and I see: <script src="//connect.facebook.net/en_US/all.js"></script> they use // instead of http:// -- is this something fancy that I don't know about yet? It's called a "protocol-relative URL". Similar to how a url starting with "/" is relative to the root of the current domain, a URL starting with

Android how to create Custom URL scheme with the given format myapp://http://

不问归期 提交于 2019-11-30 17:34:28
I have researched through most of the custom URL scheme Q&A and I have not found my possible answer. I want my app to be launched by clicking a certain URL in the browser (any on the mobile device) , the thing is that my given URL cannot be modified as it serves IOS app as well and it looks like this: "myapp:// http://www.name.com/path/path2/ " I'm not sure how to handle "myapp://http://" and construct a proper intent filter , and everything i tried does not work. Any help will be appreciated , and if I missed a relevant answer please except my apology. This is what I tried so far : <activity

using // instead of protocol:// [duplicate]

折月煮酒 提交于 2019-11-30 16:51:53
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is it valid to replace with // in a <script src=“…”>? Absolute URLs omitting the protocol (scheme) in order to preserve the one of the current page Does using //www.example.com in Javascript chose http/https protocol automatically I'm looking at some sample code from facebook and I see: <script src="//connect.facebook.net/en_US/all.js"></script> they use // instead of http:// -- is this something fancy that I

How to handle a custom URL scheme in Webkit GTK?

拟墨画扇 提交于 2019-11-30 12:56:25
Let's say I want to use a WebKitWebView in GTK to display some static HTML pages. These pages use a custom URL scheme, let's call it custom:// . This scheme represents a local file whose location is not known beforehand, at the time the HTML is generated. What I do is connect to the navigation-requested signal of the webview, and do this: const gchar *uri = webkit_network_request_get_uri(request); gchar *scheme = g_uri_parse_scheme(uri); if(strcmp(scheme, "custom") == 0) { /* DO FILE LOCATING MAGIC HERE */ webkit_web_view_open(webview, real_location_of_file); return WEBKIT_NAVIGATION_RESPONSE

How to test custom URL scheme in android

醉酒当歌 提交于 2019-11-30 08:24:09
I'm working on app that requires Custom URL Scheme looks like "appname://" I've searched lot of things and also found many related questions, but I'm still having trouble. How I can test this URL Scheme from a browser? Currently, whenever I type in a browser's address bar "appname://", it goest directly to a Google search. I have this in my AndroidManifest.xml: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="appname" android:host=