function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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?
Anamiak BanerjeeAnamiak Banerjee
You can follow this link to know the asnwer.

SwethaSwetha (Salesforce Developers) 
HI Sumit,
As per , 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
sengkang grandsengkang grand
Singapore, 3 November 2019 – CapitaLand Limited and City Developments Limited (CDL) initiated deals for the 680-unit Sengkang Grand Residences on Saturday, 2 November 2019, seven days after its business display opened for review on Friday, 25 October.  sengkang grand residences developer As of 6.00 pm on Sunday, 3 November 2019, 216 units of the 280 delivered have been sold at an Average Selling Price (ASP) of around S$1,700 psf. The solid presentation makes Sengkang Grand Residences the top of the line incorporated venture dispatch this year. About 93% of the purchasers are Singaporeans, while the leftover 7% include Permanent Residents and outsiders principally from China, Malaysia, India and Philippines.