简体   繁体   English

Trigger.IO如何用javascript找出设备类型

[英]Trigger.IO how to find out device type with javascript

I'm currently developing a mobile app using Trigger.io. 我目前正在使用Trigger.io开发移动应用程序。 Since i only have one code for all platforms and devices, I need to get the device type (ie Android v4.3, iOS 7). 由于我只有一个代码用于所有平台和设备,我需要获得设备类型(即Android v4.3,iOS 7)。 is there any built-in function for that? 那有什么内置功能吗? like forge.device or something like that? forge.device或类似的东西? or should i rely on navigator.userAgent ? 或者我应该依赖navigator.userAgent

There was just a plugin released last week I think, will give you device and version 上周刚发布了一个插件,我想,会给你设备和版本

https://trigger.io/modules/platform/current/ https://trigger.io/modules/platform/current/

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

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