I'm currently developing a mobile app using Trigger.io. Since i only have one code for all platforms and devices, I need to get the device type (i.e Android v4.3, iOS 7). is there any built-in function for that? like forge.device or something like that? or should i rely on navigator.userAgent?

有帮助吗?

解决方案

There was just a plugin released last week I think, will give you device and version

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top