Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 javascript 实现”添加到主屏幕“ 功能 #34

Open
Samgao0312 opened this issue Aug 15, 2019 · 0 comments
Open

使用 javascript 实现”添加到主屏幕“ 功能 #34

Samgao0312 opened this issue Aug 15, 2019 · 0 comments

Comments

@Samgao0312
Copy link
Owner

Samgao0312 commented Aug 15, 2019

参考阅读:

背景:

目标:

webApp可以在iphone、andorid机型上实现 ”添加到主屏幕“ 功能,从而达到推广、及留住用户的设想;


实现方案:

本身 apple 是不支持(允许)开发者通过 脚本 执行这种操作的,只能通过界面才可以;

第三方解决方案

add-to-homescreen

https://github.com/cubiq/add-to-homescreen


Mobile Bookmark Bubble

https://github.com/h5bp/mobile-boilerplate/wiki/Mobile-Bookmark-Bubble

Mobile Bookmark Bubble是一个JavaScript库,可在您的移动Web应用程序底部添加促销泡泡,邀请用户将应用程序添加到其设备的主屏幕。

该库使用HTML5本地存储来跟踪是否已经显示促销,以避免不断唠叨用户。

有两个新版本的实现,一个仅支持Mobile Safari,另一个支持Mobile Safari,Android,Blackberry触控智能手机和Playbook。

  • 仅适用于Mobile Safari:https://github.com/cubiq/add-to-homescreen
  • Mobile Safari +其他:https://github.com/okamototk/jqm-mobile-bookmark-bubble

这两个版本基于Google Code上的原始存储库。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant