concept user in category ionic
appears as: user, Users, The user, user

This is an excerpt from Manning's book Ionic in Action: Hybrid Mobile Apps with Ionic and AngularJS.
Require keyboard to load— Users have to type the address in a browser to find or use a mobile website, which is more difficult than tapping an icon.
Handle cases where a user is offline— We talked about how to handle offline situations in chapter 7, but see if you can apply that here. The app will fail now without a connection, so it’s important to check how it works without a connection. Consider also using Angular’s $http interceptors to handle errors.
You’ll need to update the run() method inside of www/js/app.js with the geolocation plugin request. If necessary, it will prompt the user to allow access to location information. Assuming the user agrees, it will then return to you the geolocation of the user. You’ll use Google’s Geolocation API to look up the address for that location, so you have a friendly name for reference, and then send the user to the forecast that’s loaded from Forecast.io’s API. The following listing has the code that you’ll add to the app.js file, noted in bold.