url-scheme

Open WhatsApp conversation using Abid doesn't work

二次信任 提交于 2019-12-11 09:26:34
问题 I'm trying to open whatsapp conversation/chat for particular contact. Instead of opening the desired chat it only opens the app. No idea whats wrong : let URLString = "whatsapp://send?abid=\(ID);text=lOL;" UIApplication.sharedApplication().openURL(NSURL(string: URLString)!) URLString value : whatsapp://send?abid=414;text=lOL Any suggestions? 回答1: Update your URL like this: whatsapp://send?abid=\(ID)&text=lOL Source from HERE. 回答2: Try this and check if the UIApplication and open the URL. let

Are angle brackets valid in data URIs?

我们两清 提交于 2019-12-11 08:37:57
问题 I've been reading about Data URIs which has the following example of a valid data URI: data:text/html,<script>alert('hi');</script> However reading through RFC 2397 I have found the following: dataurl := "data:" [ mediatype ] [ ";base64" ] "," data mediatype := [ type "/" subtype ] *( ";" parameter ) data := *urlchar parameter := attribute "=" value where "urlchar" is imported from RFC2396 From what I understood is that urlchar should be what is in Section 2.4.3 of RFC2396, where it notes the

Using a custom URL scheme with UIWebView

社会主义新天地 提交于 2019-12-11 08:23:35
问题 I have a black box container. I love black boxes, they obfuscate things so well. This black box is an encrypted zip (sort of) and has inside some html files (this is the short, not so painful to explain, version). Those files need to be displayed in an UIWebView. Now, the easy way to do it, decrypt, unzip to filesystem, load file from filesystem. That's good, except, the black box contains secret stuff, and can't just lay around on the filesystem, not even a sec, so, I made a C library that

iPhone custom url scheme Add shortcut to homescreen

℡╲_俬逩灬. 提交于 2019-12-11 07:31:50
问题 I have found this site http://cubiq.org/add-to-home-screen which has javascript for showing a bubble to encourage the user in Safari to create a shortcut to the web page, but I was wondering if anyone has a way to swap the web page url with the native app custom url scheme before creating the shortcut. 回答1: In some situations it can be helpful to have a few shortcuts to start an app from a custom URL with different parameters. For example if you have an application that is a container for a

Swift 4 - IOS 11 / “Apps-prefs=root” function not working

…衆ロ難τιáo~ 提交于 2019-12-11 04:27:17
问题 I've made a simple test application that open the Settings app programmatically, by a specific button. Instead of opening the desired settings page (the wifi page, in this case) it opens the generic setting screen. Could someone please help me understanding what exactly changed in Swift 4, in order for me to fix this behavior? Thansk a lot! This code: if let url = URL(string:"App-Prefs:root=WIFI") { if UIApplication.shared.canOpenURL(url) { if #available(iOS 10.0, *) { UIApplication.shared

How to get CFBundleURLSchemes of an app in iOS Swift

早过忘川 提交于 2019-12-11 04:07:09
问题 I have made a demo project App1 in which I added a button which will redirect me to the installed app suppose App2(" fitbit ") I have gone through many tutorials and basically got the idea how to do this through the 2nd answer "This app is not allowed to query for scheme cydia" IOS9 error .but got stucked at a point where I need to mention URL Scheme of App2(" fitbit ") at LSApplicationQueriesSchemes in App1. So basically the question is how to get the URL Schemes of the apps like fitbit .

Deep link into eBay iOS app with custom URL scheme?

廉价感情. 提交于 2019-12-11 02:39:43
问题 In my app, I’d like a way to open the eBay application on a customer’s iOS device (if they have that app installed), and perform a search with a term I specify. I’ve noticed that opening an eBay:// URL does indeed open the app, but I can’t find any API documentation on eBay’s developer portal discussing what I’d like to do. Has anyone done this? Any idea what the rest of the URL would need to be in order to simply perform a search in the app with a given term, and perhaps some specified

opening app using custom URL Scheme. First time scene(_:openURLContexts:) does not call in sceneDelegate

こ雲淡風輕ζ 提交于 2019-12-11 02:34:56
问题 In info.plist file I configured URL Identifier and URL Scheme successfully. Also I am able to open app using custom URL. The problem is when app launches first time the method func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) does not call. I have some dependent functionality based on above method. So when app launches first time I am not able to see anything in my app. Also I added code in method func scene(_ scene: UIScene, willConnectTo session:

Detecting programmatically whether an app is installed on Android

本秂侑毒 提交于 2019-12-11 02:08:14
问题 I have registered a url scheme for my Android app (let's say myapp://host). On my other app, I can launch that app by using Intent, but how do I check whether the first app is installed without launching it? in iOS, it is as easy as [[UIApplication sharedApplication] canOpenUrl:@"myapp://"]; is there an equivalent in Android? (easy way) I'd like to check using url scheme. I know how to check using package name, but I do not know how to get the url scheme from PackageInfo as well... (harder

iOS Launching Settings -> Restrictions URL Scheme

自闭症网瘾萝莉.ら 提交于 2019-12-10 16:36:45
问题 I've recently discovered the awesome iOS5 custom Settings URL Scheme , which can be explained in detail at this great website. I've found this to work, directing the user to the Settings app from my application: [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"prefs:root=General"]]; But cannot seem to route directly to the Restrictions path via the path parameter: [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"prefs:root=General&path=Restrictions"]]; Has