custom-url

Custom URL to launch Facebook Messenger on iOS

☆樱花仙子☆ 提交于 2019-11-26 19:31:15
问题 How can I launch FaceBook Messenger (if installed) with a compose Windows to a specific FB ID. If messenger is not installed, can we launch FaceBook app and have the compose Windows open to a specific FB ID. In the rare instance if no Facebook apps are installed, can we launch mobile Safari with the compose window? 回答1: The URL scheme is fb-messenger://user-thread/{user-id} . I just build my app with fb-messenger URL scheme as Viewer and trapped the URL on the UIApplication delegate. The user

Support for other protocols in Android webview

冷暖自知 提交于 2019-11-26 12:41:53
问题 I\'ve created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I\'ve tried looking through documentation but was unable to find anything relating to this. Any help is much appreciated. 回答1: For me the JavaScript thing wasn't a solution as the HTML is not under my control. So if you need to control this from the application side, then there is a relative simple solution:

Launching app OR app store from Safari?

邮差的信 提交于 2019-11-26 04:30:50
问题 I already know how to launch an app from safari, but is it possible to check if the app is installed before launching? I\'m thinking to launch the app store if the app isn\'t currently installed on the iPhone. 回答1: It's not possible to check if app is installed from a web page. You could do it inside an other app by checking if your url scheme can be opened using UIApplication's -canOpenURL: method, but there is no javascript equivalent to this. However, you can use the following workaround: