代号一如何共享到您的应用程序的链接。 [英] codename one. How to share a link to your app.

查看:80
本文介绍了代号一如何共享到您的应用程序的链接。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在这里实现的功能与大多数应用程序(尤其是YouTube)类似。如果我在youtube上分享视频,则用户会获得该视频的链接。单击链接后,用户将被自动带到Youtube应用程序中的视频(如果用户拥有该应用程序)。我想要那种功能。我的应用上有不同的商店以及有关商店的信息。我希望用户能够通过Whatsapp,短信等共享商店,因此,当接收者单击共享链接时,他们会自动转到该特定商店的页面,位于我的应用程序内。如果他们没有该应用程序,则链接必须将他们带到应用程序商店中我的应用程序页面,以允许他们下载它。如何在代号1中实现这一点。我查看了开发人员文档和操作方法部分中的共享功能,这仅向我展示了如何共享文本或图像。没有链接到我的应用程序。

What I want to achieve here is similar to what most apps do, specifically like Youtube. If I share a video on youtube the user gets a link to the video. When the link is clicked the user is automatically taken to the video in the Youtube app (if the user has the app). I want that sort of functionality. My app has different stores on it and information about the store. I want the user to be able to "Share" a store via Whatsapp, sms etc so then when the receiver clicks on the shared link they are automatically taken to that specific store's page INSIDE my app. And if they do not have the app the link must take them to my app's page in the app store to allow them to download it. How do I achieve this in codename one. I looked at the share functionality in the developer doc and the How To section and that only shows me how to share text or images. Not a link to my app.

推荐答案

此问题的正确答案实际上是URL拦截。 http://www.codenameone.com/blog/intercepting-urls -on-ios-android.html 您将应用程序的URL共享到外部应用程序。当用户在外部应用程序中打开该舔按钮时,如果您的应用程序拦截了该用户,则该用户将自动转到您的应用程序。

The correct answer to this question was actually URL intercepting. http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html You share a url from your app to an external application. When the user opens that lick in an external application the user is automatically taken to your app if your app intercepts it.

这篇关于代号一如何共享到您的应用程序的链接。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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