In this chapter, we discuss some advanced topics.
Platform
We have seen the class Platform in previous chapters. It can be used to interact with the underlying platform. We used the method ready() of Platform to wait for the Cordova platform to finish initialization. The class Platform also has other methods.
platforms() – Depends on the running device, the return value can be an array of different platforms. Possible values of platforms are android, cordova, core, ios, ipad, iphone, mobile, mobileweb, phablet, tablet, and windows. When running on the iPhone emulator, the return value ...