应用程序弹出通知移动设备的网络浏览器 [英] App notification popup mobile device web browser

查看:176
本文介绍了应用程序弹出通知移动设备的网络浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不是真的知道如何正确地描述这个,所以希望你们当中有些人知道我的意思。

Not really sure how to correctly describe this so hopefully some of you know what I mean.

我们的客户端得到一个移动应用程序为thier网站,希望很快,我已经注意到在Android设备上,并确保他们在iPhone上可能存在过,一个弹出通知你,说网站有一个应用程序。我已经看到它在支持tapatalk还有sammobile.com网站论坛。它是一个小消息和一个确定和取消按钮,确定把你的应用程序市场。

Our client is getting a mobile app for thier site, hopefully soon, and I have noticed on android devices and sure they probably exist on iphones too, a popup to inform you that said site has an app. I have seen it on forums that support tapatalk as well as the sammobile.com website. Its a small message and an "ok" and "cancel" button, ok takes you to the app in the market.

当你知道,或者至少能够正确地描述你所期待的Google的唯一真正有帮助的。

Googles only really helpful when you know or at least can correctly describe what you are looking for.

有谁知道 A)做的iPhone也有这个特点, B)我将如何去触发这样一个弹出/通知?

Does anyone know A) Do iPhones also have this feature and B) how would I go about triggering such a popup/notification?

推荐答案

使用Infor公司的一些从Java推送的触发以及一些其他的堆栈我把这个在一起。

Using some infor from a java push trigger as well as a few other Stacks I put this together.

<script type="text/javascript">
  if( /Android|iPhone|BlackBerry/i.test(navigator.userAgent) ) {
  var url=confirm("Would you like to download our mobile application?");
    if (url==true)
  {
    var url = window.location.href = 'http://www.google.com';
    url.show(); 
  }
    else
  {

  }
  }
  </script>

将测试提到的3个设备,如果是的话将创建一个确认框,其中确认将引导用户到另一个URL。

Will test for the 3 devices mentioned, if so will create a confirmation box for which confirmation will direct the user to another url.

这篇关于应用程序弹出通知移动设备的网络浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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