-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic + Cordova + Angular 16 - Cordova HMS Location #176
Comments
I also now tried install only @hmscore/ionic-native-hms-location (without @ionic-native/core) and this also gave the same issue...
|
@Burnie777 Had same (and more) issues with my capacitor not ionic app and all hms-cordova-plugins, but finally made it work 🥳 Soliton: #1 Install @ionic-native/core (I did it for my Vuejs + Capacitor, non-ionic app)
#2 Import methods in the app this way:
P.S. Probably the next issue you will face - will be 'geolocation permission denied'. This plugin will not work if you will grant 'Allow while using the app' permission, you should send user to the app settings and grant 'Allow all the time' |
@AEiosApp I am working with Cordova + AngularJS, and not Capacitor... I have tried to install @ionic-native/core, it give me an error that a function I defined does not exist... Cordova moved away from @ionic-native/core in Ionic/7, in favour of @awesome-cordova-plugins/core... Installing the @ionic-native/core, causes limitations and breaks in the newer Ionic Cordova apps... I am also running Angular 16, whereas the demos run on Angular 15... |
Description
I am trying to add the location services to get a GPS location in the app, but I am not able to get the correct linking. Based on the Hauweis dev site The ionic native support is optional, however I believe that it not.
My app is running on ionic 7 with Angular 16, and rxJS 7.8.1.
Also, as ionic is no longer maintaining the @ionic-native plugins, I moved everything over to the @awesome-cordova-plugins. I did also notice on the demo code that Angular 15 was used...
Expected behavior
I expect to get location.
Current behavior
After force installing @ionic-native/core (which is Max rxJS 6.5.5):
checkLocationPermissions is a method I created to get locations (which includes the android and ios version as well, as I am doing multi-platform
If @ionic-native/core is not installed, I get a error on build, which says that @ionic-native/core is not found...
Logs
Environment
Other
This is the first time that we are trying to implement the plugin to ionic 7, angular 16...
The text was updated successfully, but these errors were encountered: