url-scheme

How to make a call which begin with * in iPhone?

自古美人都是妖i 提交于 2019-11-26 23:38:21
问题 In my application, I want to call the number *111, when I use this URL tel:*111 to call, but can't make call success, please give me some indicate, thank you very much. [[UIApplication sharedApplication] openURL:@"tel:*111"] was not work. but it will work when remove * : [[UIApplication sharedApplication] openURL:@"tel:111"]; 回答1: It's not possible. From the Apple URL Scheme Reference: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account,

How to handle with a default URL scheme

北城以北 提交于 2019-11-26 19:47:39
I want to build URI (or URL scheme) support in my app. I do a LSSetDefaultHandlerForURLScheme() in my + (void)initialize and I setted the specific URL schemes also in my info.plist . So I have URL schemes without Apple Script or Apple Events . When I call myScheme: in my favorite browser the system activates my app. The problem is, how to handle the schemes when they are called. Or better said: How can I define what my app should do, when myScheme: is called. Is there a special method that I have to implement or do I have to register one somewhere? Thomas Zoechling As you are mentioning

URL Scheme “Open Settings” ios

江枫思渺然 提交于 2019-11-26 19:45:01
问题 I know this question has been asked so many times. The answers say that this is not available in Xcode > 5.x. but I saw some apps that can use this(Go to Settings)(iOS7). Is there any way to do this? Is it available in Xcode 6? Facebook can detect both cellular data and wifi . 回答1: As of iOS 8, it's possible to launch the Settings app that directly opens your Privacy app section in this way: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

REST API DESIGN - Getting a resource through REST with different parameters but same url pattern

佐手、 提交于 2019-11-26 18:49:30
问题 I have a question related to REST url design. I found some relevant posts here: Different RESTful representations of the same resource and here: RESTful url to GET resource by different fields but the responses are not quite clear on what the best practices are and why. Here's an example. I have REST urls for representing "users" resource. I can GET a user with an id or with an email address but the URL representation remains the same for both. Going through a lot of blogs and books I see

Is it considered a private API to use App-prefs:root?

醉酒当歌 提交于 2019-11-26 16:39:30
In my app I'm using [NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"] to open settings screen. Will it be rejected by apple as according to some sources this is considered a private API? Yes. The only legal way to open Settings is to use UIApplicationOpenSettingsURLString . rhcpfan My app just got rejected because of this, so yes, it is considered as private API :) Here's the rejection notice from Apple: Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user

How to open native iOS app (calendar, notes…) from a link on website?

空扰寡人 提交于 2019-11-26 15:49:00
问题 Is it possible to open native iOS app, e.g. calendar or notes, from an HTML link which is in website? I tried to find an example but I couldn't. I ran into these URL schemes but I don't know how to use them and what's the URL scheme for calendar or notes. Is it possible just to do something like this: <a href="calendar://something here?">Click me!</a> Is it possible to do it only with HTML or is JavaScript needed? 回答1: If you're looking for the URL Schema, iPhone Calendar is: CALSHOW: 回答2:

URL Scheme for Phone Call

让人想犯罪 __ 提交于 2019-11-26 15:48:52
问题 Much like the "mailto" URL prefix launches the user's default mail program and starts a new email with specified address, is there a similar URL scheme that would initiate a phone call? Perhaps "phone," "call," or "sip"? Incidentally, I'm targeting a platform that is using Cisco CUPS, so there may be a platform-specific way for me to initiate a call that is particular to Cisco, but I thought I'd ask the more general question first. However if anyone knows specifically how to programmatically

Launching Viber app via URL scheme on iOS

落爺英雄遲暮 提交于 2019-11-26 14:37:51
问题 I'm making an iOS app which can open Viber app and automatically call a person or go to chat window with the person. Is there any url scheme for Viber to do that such as: viber://tel:<phone_number> viber://chat:<phone_number> I followed this link but it's for Android. 回答1: I sent a mail to the Viber support and they told me that this kind of URL (opening Viber call/chat with a phone number) are no more supported. When typing Viber version is 5.6. Look at their answer: support@viber.com :

The “prefs” URL Scheme is not working in iOS 10 (Beta 1 & 2)

冷暖自知 提交于 2019-11-26 12:44:58
问题 I can\'t get the \"prefs\" URL Scheme to work in iOS 10 (Beta 1). It\'s set up correctly since the same App works fine on iOS 9. Is this a bug or did it get renamed / removed? Code: let settingsUrl = NSURL(string: \"prefs:root=SOMETHING\") if let url = settingsUrl { UIApplication.sharedApplication().openURL(url) } Update: (Beta 2) Still not working in Beta 2. It seams to be an bug. For example if you want do invite someone using GameCenter in iOS 10 and you\'re not logged into iMessage, you\

How to use tel: with * (star, asterisk) or # (hash, pound) on iOS?

耗尽温柔 提交于 2019-11-26 12:31:06
I'm trying to initiate a call on the iPhone with the tel url that has a * in it. It properly brings up the call dialog but drops back to safari when you click call. <a href="tel:123*12">Test</a> This documentation from Apple should be helpful: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number. UPDATE (Jan 2, 2018)