Reputation: 107
My ionic app uses google api geolocation service and works fine when I run it using "ionic serve" and with Ionic View app. However, when I run "ionic build ios" and run the app on my ios device, the geolocation service does not work. I thought it was because location service was not on. I went to setting > Privacy > Location Service to allow location service however, I realized that the app I am working on is not listed there. (But there is ionic view app icon and the location service is allowed. I think that's why it works with ionic view app). Also I realized that the app is not even listed on setting.
How can I list ionic app ("ionic build ios") on setting in ios so that I can change permission for location service?
Any suggestions will be appreciated. Thanks in advance.
Upvotes: 2
Views: 340
Reputation: 3783
May be you need the GeoLocation plugin to get access of location services in your phone. Try adding it by
cordova plugin add cordova-plugin-geolocation
and then allow access to it when it start using its services in your phone. This way your app will be listed in the location service settings too.
Upvotes: 0