© Fu Cheng 2017

Fu Cheng, Build Mobile Apps with Ionic 2 and Firebase, 10.1007/978-1-4842-2737-4_11

11. Advanced Topics

Fu Cheng

(1)Sandringham, Auckland, New Zealand

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 ...

Get Build Mobile Apps with Ionic 2 and Firebase: Hybrid Mobile App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.