Is there any way to get the Android version currently running in a trigger.io app? I’m attempting to maximize performance by removing some css flare (drop shadows and gradient) for older versions of Android.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE:
The module I described below has just been made public, so feel free to use forge.platform.
I actually wrote a native module for Trigger.io apps that is doing exactly this. The code of my API.java looks somewhat like this:
Update: You can now find the code on a public GitHub repo as well.
Of course, this will only work for native apps. If you deploy you project to the web, you’ll need to have a fallback that parses the user agent.