Open jtara opened 6 years ago
I noticed another couple of issues with the documentation as well.
Documentation states that isDeviceSecured checks for installer issues. It does not. It will return true even if installer issue. You need to check for installer issue separately.
As well, I notice there is no link for DeviceSecurity under APIs. However, it is present in the left sidebar. It would be good to check for other APIs missing in the main list that are listed in the sidebar.
Filing these here because rhomobile-docs project doesn't seem to be updated.
Documentation for isRunOnSimulator and isDeviceSecured is incorrect.
isRunOnSimulator also applies to iOS, and returns true if run on Apple simulator. (I have not tested with RhoSimulator). Probably really moot, since simulator on iOS only runs with specially-built X86 image and would never apply with distributed application.
isDeviceSecured description should be reworded a bit, since simulator check is included on iOS.
All of the methods are actually available on iOS, but of course those that are not applicable return false. It might be good to mention this in the documentation, as it will save developers the trouble of writing conditional code.