-
Notifications
You must be signed in to change notification settings - Fork 67
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
Problems to get to work on Ios #151
Comments
Have you played with the configuration? Distance filter of 0 while using distance provider send like a bad idea, but it might work IDK. |
Thanks for answer so fast now wI have another problem with the sqlite database it doesn't create the necessary tables should I need to add something to the config or related on Android works well |
Hi? |
I have it working on iOS, I can't debug your app... |
I know you can't debug my app but may something is wrong with my config, maybe the import? |
I don't know... Sorry... |
Thanks i got it to work last thing is it posible to set a location interval for iOS? |
Does the interval works for ios in that service? |
Hi Raúl, how did you make it works ? |
Hi tsanko I couldn´t make it works on ios, actually I´m doing other things probably in the some weeks I´ll give it another try if I get it to work I´ll dm you or reply this |
Do events really work in backround mode? I think that they dont... Because they require javascript and webview |
They work to a certain limit, I also think it's different between capacitor and Cordova. |
I think that in cordova they just dont work in background mode. Cause webview gets destroyed. And javascript code just cant be executed. Events are only for foreground mode. But you can get all locations when your app is activated and brought to foreground and then log. |
Hello, actually I'm using this plugin on capacitor i got it to work for Android Devices but when it comes to Iphone devices i only get troubles actually I modified the info pList with:
and also on the capabilities I checked the location updates, fetch and background processing
This is my configuration:
And this is my on event code:
Finally the xcode log:
2023-06-13 13:52:44.140120+0200 App[88984:1058797] CDVBackgroundGeolocation #onAuthorizationChanged
2023-06-13 13:52:44.140804+0200 App[88984:1059078] Configuration persisted successfully
2023-06-13 13:52:44:140 App[88984:1058797] LocationManager didChangeAuthorizationStatus 4
2023-06-13 13:52:44.144086+0200 App[88984:1058880] LocationManager didChangeAuthorizationStatus 4
2023-06-13 13:52:44:158 App[88984:1058797] DistanceFilterLocationProvider will start
2023-06-13 13:52:44.161157+0200 App[88984:1058880] DistanceFilterLocationProvider will start
2023-06-13 13:52:44:174 App[88984:1058797] DistanceFilterLocationProvider switchMode 1
2023-06-13 13:52:44.179519+0200 App[88984:1058881] DistanceFilterLocationProvider switchMode 1
2023-06-13 13:52:44:191 App[88984:1058797] DistanceFilterLocationProvider didUpdateLocations (operationMode: 1)
2023-06-13 13:52:44:193 App[88984:1058797] Location age 0.437930
⚡️ [log] - EMPIEZA LOC
⚡️ [log] - FetchLocation: 9 This FetchLocation Isn't related with this
⚡️ [log] - 1
2023-06-13 13:52:44:263 App[88984:1058797] DistanceFilterLocationProvider didUpdateLocations (operationMode: 1)
2023-06-13 13:52:44:263 App[88984:1058797] Location age 0.111447
As you can see in the log it shows my console log but it never execute the function (inside the functions there are more logs)
The text was updated successfully, but these errors were encountered: