url-scheme

Facebook SDK: app not registered as a URL Scheme

柔情痞子 提交于 2019-11-26 12:02:00
问题 I am using the Facebook SDK found here, and am trying the sample that is provided (in the folder FacebookiOSSample ). If I simply replace the AppId here with my specific AppId , then I can no longer Share. (I replaced it in both the AppDelegate file and the info.plist file). I now receive the following error: FBSDKLog: Invalid use of FBAppCall, fb**** is not registered as a URL Scheme. Did you set \'FacebookUrlSchemeSuffix\' in your plist? Otherwise this works fine with the sample\'s original

How to handle with a default URL scheme

这一生的挚爱 提交于 2019-11-26 07:26:42
问题 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

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

拥有回忆 提交于 2019-11-26 06:46:06
问题 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? 回答1: Yes. The only legal way to open Settings is to use UIApplicationOpenSettingsURLString . 回答2: 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

Check if URL scheme is supported in javascript

只愿长相守 提交于 2019-11-26 06:11:38
Is there any way to check if a URL scheme is currently registered on the phone... with javascript? No, not from a webpage. Not seamlessly. But there is a way similar to checking if a pop-up was blocked or not. When you try a URL scheme which is not supported, Safari will warn the user that it doesn't know what to do with it and stay on the same page. So if you gave your app-call some time to activate, say 300 ms, and then do something else to respond to the non-existence of the scheme. It's not the prettiest but it works: function startIThrown(){ document.location = 'ithrown://restart';

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

被刻印的时光 ゝ 提交于 2019-11-26 02:58:52
问题 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> 回答1: 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 #

Check if URL scheme is supported in javascript

限于喜欢 提交于 2019-11-26 01:56:54
问题 Is there any way to check if a URL scheme is currently registered on the phone... with javascript? 回答1: No, not from a webpage. 回答2: Not seamlessly. But there is a way similar to checking if a pop-up was blocked or not. When you try a URL scheme which is not supported, Safari will warn the user that it doesn't know what to do with it and stay on the same page. So if you gave your app-call some time to activate, say 300 ms, and then do something else to respond to the non-existence of the

How to mark-up phone numbers?

旧巷老猫 提交于 2019-11-26 00:56:32
问题 I want to mark up a phone number as callable link in an HTML document. I have read the microformats approach, and I know, that the tel: scheme would be standard, but is quite literally nowhere implemented. Skype defines, as far as I know, skype: and callto: , the latter having gained some popularity. I assume, that other companies have either other schemes or jump on the callto: train. What would be a best practice to mark-up a phone number, so that as many people as possible with VoIP

iOS Launching Settings -> Restrictions URL Scheme

◇◆丶佛笑我妖孽 提交于 2019-11-26 00:11:02
问题 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\"]]

Open Facebook page from Android app?

笑着哭i 提交于 2019-11-25 23:15:48
问题 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

How to mark-up phone numbers?

六眼飞鱼酱① 提交于 2019-11-25 20:09:20
I want to mark up a phone number as callable link in an HTML document. I have read the microformats approach , and I know, that the tel: scheme would be standard, but is quite literally nowhere implemented. Skype defines, as far as I know, skype: and callto: , the latter having gained some popularity. I assume, that other companies have either other schemes or jump on the callto: train. What would be a best practice to mark-up a phone number, so that as many people as possible with VoIP software can just click on a link to get a call? Bonus question: Does anyone know about complications with