You need to sign in to do that
Don't have an account?

How can canvas app detect if its running on Salesforce android app?
I created a canvas app that also runs on Salesforce android app. How can my canvas app detect if its running on Salesforce android/ios app or not?
(https://purijankari.in/)
As per https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/environment_object.htm , the Environment object contains context information about the canvas app environment. We have displayLocation and subLocation properties based on which you can identify from where the canvas is called but the documentations do not specify whether it is android/ios specific.
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you