简体   繁体   English

将智能横幅添加到Ionic2应用程序的最佳方法是什么?

[英]What is the best way to add a smart banner to an Ionic2 application?

We have an Ionic2 application that runs on iOS, Android and web. 我们有一个可在iOS,Android和Web上运行的Ionic2应用程序。 We would like to add a smart banner to the app that shows up when it is running on a mobile browser and prompts the user to open the mobile app. 我们想向应用添加智能横幅,以在移动浏览器上运行时显示该横幅,并提示用户打开该移动应用。

There are some packages available for adding smart banners, but we are not sure how to integrate them into the Ionic application. 有一些可用于添加智能横幅的软件包,但是我们不确定如何将它们集成到Ionic应用程序中。 Any guidance would be appreciated. 任何指导将不胜感激。

To add a Smart App Banner to your website, include the following meta tag in the head of each page where you'd like the banner to appear: 要将Smart App横幅添加到您的网站,请在您希望横幅显示的每个页面的开头添加以下meta标记:

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">

More info: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html 更多信息: https : //developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM