Is there a way to detect what platform the app is running on with Javascript in trigger.io? It looks like in the olden days there was an is.android and is.ios method that have since disappeared. We have some different behaviors we want to apply to the different browsers.
标签:
trigger.io
相关问题
- lungojs in trigger.io
- Uploading image to Parse using Javascript(CoffeeSc
- Uploading FormData from Trigger.io Forge to Amazon
- Cookies not being sent back and forth properly in
- What steps do I need to take to use the Ionic Fram
相关文章
- Uploading FormData from Trigger.io Forge to Amazon
- Cookies not being sent back and forth properly in
- What steps do I need to take to use the Ionic Fram
- 以检测Trigger.io平台的方式(A way to detect Platforms on Tr
- trigger.io的Android的WebView应用程序 - 键盘后出现灰色背景关闭或方向变化(
- 什么是TriggerIO数据角色的目的是什么?(What is the purpose of dat
- 在iframe标签允许一个trigger.io页面(不是标签页)内?(Is the iframe t
- 我如何(如果有的话)在Trigger.io禁用设备的睡眠?(How can I (if at all
Yes, the
forge.is
namespace allows you to detect the platform using JavaScript.To detect if the app is running on an Android device call
forge.is.android()
To detect if the app is running on an iOS device call
forge.is.ios()
See the Platform Detection docs for more information.
depending on your needs there are a few answers.
The isAndroid or isIOS can work for detecting simply the device but will not give you the version number, somtimes you need to detect versions of IOS or android.
To do that you should use the platform module
https://trigger.io/modules/platform/current/docs/index.html