This repository was archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Ionic_Calculating Distance Between Users
Miroslav Smukov edited this page Dec 21, 2016
·
3 revisions
In browser everything worked fine, but on a device I got the error Illegal Access
when Geolocation
plugin was trying to access the device's location.
I fixed it by adding the below code to plugins/android.json file:
{
"xml": "<feature name=\"Geolocation\"><param name=\"android-package\" value=\"org.apache.cordova.geolocation.Geolocation\" /></feature>",
"count": 1
}
I found this info in plugins\cordova-plugin-geolocation\plugin.xml file.
This means that my plugin add
CLI code is still broken and is not properly updating android.json
file. At least it added the permissions to AndroidManifest.xml
and copied over to Android project the required code for the plugin.
- implemented GeoLocation plugin, and obtaining and storing of user location to firebase
- added logic for distance calculation. Added distance to Discover Users page
- added distance to Contact page
- http://ionicframework.com/docs/v2/native/geolocation/ ($ ionic plugin add cordova-plugin-geolocation)
- Android
- Getting Started
- Project Structure
- Gradle
- Menu
- Theming
- Login Screen
- Menu & Navigation
- Importing Library From GitHub
- Creating Reusable Layouts
- Adding New Icons
- Profile Screen
- Chat Screen
- Contacts Screen
- Pending Invites Screen
- Settings Screen
- Add Library Dependency
- Discover Users Screen
- Splash Screen
- Auth0
- Authentication Logic
- Profile Screen Logic
- Send Feedback
- Authenticated to Firebase via Auth0
- Saving User Info to Firebase
- Storing User Connection Info to Firebase
- Calculating Distance Between Users
- Chat Logic
- Handling Device Rotation
- Android Other
- Ionic
- Getting Started
- Project Structure
- Menu
- Theming
- Login Screen
- Adding Images
- Creating Reusable Layouts
- Adding New Icons
- Profile Screen
- Contact Screen
- Elastic Textarea
- Chat Bubble
- Chat Screen
- Contacts Screen
- Pending Invites Screen
- Settings Screen
- Discover Users Screen
- Splash Screen
- Animations
- Auth0
- Storing User Data
- Profile Screen Logic
- Send Feedback
- Update to Ionic RC0
- Reimplemented Auth0 with Ionic RC0
- Authenticated to Firebase via Auth0
- Saving User Info to Firebase
- Storing User Connection Info to Firebase
- Calculating Distance Between Users
- Chat Logic
- Handling Device Rotation
- Ionic Other
- Version Updating
- Cordova
- Other
- Messaging