9 Native hardware
This chapter covers
- How to load and save app data to a file
- How to use the device’s camera to take and save pictures
- How to use GPS and WiFi signals to determine your location
In the first eight chapters of the book, you learned the basics of NativeScript: how it works, how apps are organized, how to create pages, how to add various UI elements to these pages, and how to manage data-entry using data binding. Through these topics, we laid the foundation of your NativeScript knowledge. In fact, you’ll use that knowledge in every app you build. Even though these topics are foundation, they’ve focused on showing information on the screen of a mobile device, while leaving out an important aspect of mobile app development: interacting with native mobile device hardware.