url-scheme

How to handle a custom URL scheme in Webkit GTK?

廉价感情. 提交于 2019-12-18 15:46:15
问题 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

Showing a marker at a geo:-url in Android Maps

对着背影说爱祢 提交于 2019-12-18 13:27:39
问题 Is it possible not only to have Google Maps on Android show a given coordinate in the Maps Application but have also a marker (or pin) set at the location? I read the documentation at https://developer.android.com/guide/appendix/g-app-intents.html but it only lets me set the zoom level. Right now I use the following code to show a place in Google Maps on Android: Double lat = 53.3; Double lng = 13.4; final String uriString = "geo:" + lat + ',' + lng + "?z=15"; Intent showOnMapIntent = new

Does the DropBox app on iOS have a URL scheme?

安稳与你 提交于 2019-12-18 05:04:12
问题 I would like to be able to launch the DropBox app within my app. Therefore I would like to know if the DropBox app has a URL scheme that I can use to call openURL, something like this, except I don't know what this string should be. NSURL *myURL = [NSURL URLWithString:@"dropbox://"]; [[UIApplication sharedApplication] openURL:myURL]; 回答1: The only thing you can do with the Dropbox url-scheme is connect your Dropbox App to it. Like this: var key = "[YOUR API KEY]"; var secret = "[YOUR API

URL Scheme to post to Instagram Stories

对着背影说爱祢 提交于 2019-12-18 04:27:26
问题 Is there a way to post a video or photo directly to the Instagram Stories of the user's Instagram account? For a normal photo share on Instagram, you can use the URL Scheme and open the Editor directly. Is there a way for Stories, too? Thanks! 回答1: Swift 4.2 version of knshn's answer: func shareBackgroundImage() { let image = UIImage(imageLiteralResourceName: "backgroundImage") if let pngImage = image.pngData() { backgroundImage(pngImage, attributionURL: "http://your-deep-link-url") } } func

Is there a “map:” URI prefix to launch map application? (like mailto: or tel:)

徘徊边缘 提交于 2019-12-18 03:06:55
问题 Is there such prefix for launching map application on phones, <a href="map:21st,High Street, London">Toto's home</a> like can do <a href="mailto:toto@gmail.com">Toto's mail</a> 回答1: geo: is an officially-recognised URI scheme, and maps: may be implemented in some clients. https://en.wikipedia.org/wiki/Geo_URI_scheme 回答2: In each plantform: Apple Documentation Example: <a href="http://maps.apple.com/?ll=12.34567,8.90123"> Android: Documentation Example: <a href="geo:40.726966,-74.006076">

Web link to specific whatsapp contact

谁说我不能喝 提交于 2019-12-17 21:26:47
问题 I'd like to place a link on a webpage which opens a whatsapp chat with a certain whatsapp contact. In other words: I want a "contact me by whatsapp" link to go next to the page's "Contact us my facebook/twitter/google+/etc" links. Something like: href="whatsapp:contact=015555555555@s.whatsapp.com&message="I'd like to chat with you" 回答1: I've tried many approaches and I have a winner (see Test 3), here is the result of each one: (I think the Test 3 will also work for you because if the person

Launching app from sms link or email link

余生颓废 提交于 2019-12-17 20:43:24
问题 I have the requirement to launch an app when an sms or email link is followed. I have already been reading about URL schemes and already test that and it works, but the problem is that if the app is not installed on the device nothing will happen. I need a way to open a web url if the app is not installed, but I couldn't find a way of doing this... Any idea? Thanks 回答1: It can be done. The way I would structure it is by having a redirect from a server you control. You send the user a link

JavaScript - how to detect if the Custom URL scheme is available or not available?

佐手、 提交于 2019-12-17 16:08:11
问题 In Windows operating system i have a custom URI scheme, which is used from IE, Firefox, Opera, Safari, Google Chrome to launch Juniper router VPN SSH client (like Cisco). Basically it works as below if the SSH Client is installed, from the web page VPN SSH Client can be launched. <a href="juniper:open"> VPN SSH Client </a> Problem: sometimes the user did not installed the Juniper router SSH client application from the CD/DVD box, therefore the juniper:open does nothing. So in that case, i

Google Maps URL scheme not working on iOS 9

好久不见. 提交于 2019-12-17 09:56:53
问题 The following URL scheme was working on previous version but doesn't work anymore on iOS 9: comgooglemaps://?q=Google+Japan,+Minato,+Tokyo,+Japan&center=35.660888,139.73073&zoom=15&views=transit Did something change on iOS 9 that prevent apps from opening other apps using URL schemes? 回答1: In iOS 9, Apple has made a change to the handling of URL schemes. Now you need to add "LSApplicationQueriesSchemes" key in plist and then add URLScheme you want to call. <key>LSApplicationQueriesSchemes<

Possible to handle your own http URL schemes in iOS?

点点圈 提交于 2019-12-17 07:04:45
问题 iTunes, App Store and YouTube on iOS clearly register http://... URL schemes to open their apps. Can anyone do that, not just your own protocol? The reason I want to do this is that I am working on an app for a festival. I want to "intercept" links to specific pages on the website and launch the app instead, if installed. So far I have no had much luck 回答1: The way you can do this for "http://" URLs (and what I think Apple and Spotify do) this is to: Register a custom URL scheme like the