如何打开应用程序,当点击链接在whatsapp或任何社交应用程序通过phonegap共享? [英] how to open app when clicked on link which is shared in whatsapp or any social app through phonegap?

查看:810
本文介绍了如何打开应用程序,当点击链接在whatsapp或任何社交应用程序通过phonegap共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)当我通过phonegap插件共享一个链接到whatsapp。用户点击链接时。它应该检查是否安装了特定的应用程序。如果是,请在应用程序中打开该链接,或者打开Play商店链接以显示下载应用程序。

1)When i share a link through phonegap plugin to whatsapp. When user clicks on link. it should check whether a particular app is installed or not. If yes, open that link in the application or else open play store link showing to download the app

推荐答案

描述,其中设备拦截HTTP协议链接 http://example.com (相对于使用的自定义URL方案示例:// ),被称为深层链接在Android和通用链接上iOS。

The scenario you're describing, where the device intercepts an HTTP protocol link http://example.com (as opposed to a custom URL scheme using example://), is called "Deep Linking" on Android and "Universal Links" on iOS.

在iOS和Android的Cordova应用程式中,使用 cordova-universal-links-plugin - 完整的细节和用法在插件GitHub页面上。

It's most easily achieved in a Cordova app for iOS and Android using the cordova-universal-links-plugin - full details and usage are on the plugin GitHub page.

m不知道任何当前存在的插件,在Windows平台上提供等效的功能

I'm not aware of any currently existing plugins that make equivalent functionality available on the Windows platform

这篇关于如何打开应用程序,当点击链接在whatsapp或任何社交应用程序通过phonegap共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆