找到手机并安装应用程序
如何查找手机信息,以便在手机上安装相应的应用程序。
现在我正在使用 useragent。我将为不支持移动设备的 useragent 做什么
提前致谢
阿斯旺
How to find out mobile information.for installing corresponding app on mobile.
right now i am using useragent.what i will do for useragent not supported mobile
Thanks in advance
Aswan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确,您希望根据用户代理将用户指向适合其设备的移动应用程序的安装/下载链接,但不知道如果用户代理不被识别/支持该怎么办。
在这种情况下,我建议您提供所有支持的移动平台的链接,以供用户信息/选择。用户可能有一个兼容的设备,但目前没有使用它,可能正在购买一个,或者甚至可能正在使用兼容的设备,但已将其用户代理定制为其他设备(这可能是解决问题的明智策略)当网站检测到移动浏览器的用户代理时,会强制您进入受限或损坏的移动版本)
我还建议在检测到桌面浏览器时显示所有支持的移动链接。
事实上,最好一直显示所有这些,但首先显示检测到的合适的或更大的。
If I understand correctly you want to point the user to an install/download link for the appropriate mobile app for their device, based on the user agent, but don't know what to do if the user agent isn't recognized/supported.
In that case, I'd recommend you provide links to all the supported mobile platforms for the users information/choice. The user might have a compatible device but not be using it at the moment, might be shopping for one, or might even be using a compatible device but have customized their user agent to be something else (which can be a smart strategy for working around websites that force you into limited or broken mobile versions when they detect a mobile browser's useragent)
I'd also recommend showing all the supported mobile links when a desktop browser is detected.
In fact it might be better to just show all of them all the time, but show the detected-appropriate one first, or bigger.