-
Notifications
You must be signed in to change notification settings - Fork 38
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
Release build is not receiving location updates in dart. #38
Comments
can you provide us with the smalles example possible where it is not working? |
Yes, this is the example project. first I get LocationWhenInUse permission after Always, and then in the foreground is working. but when the app is killed not work. thank you for replying and helping. |
@vanlooverenkoen I tried real device (iphone 8 ios 15.5) and used your example project codes. unfortunately I don't have logs. but say me If you need something and how , I can provide you. |
We created local notification to debug the background location tracking. That way you are 100% sure if it is working or not. Could you try that. |
@Shahmirzali-Huseynov I have updated the example project in #40 . maybe you did not change the distance filter. (I forgot to change that as well, but after setting that to null I got updates every x seconds. while connected to my PC) |
@vanlooverenkoen you mean If I define distanceFilterMeters to null it will work? |
I am not sure how you are testing. But the distanceFilterMeters are set to 5. so If you don't move more than 5m you will not get any updates. |
I tried your #40 example project. this function didn't affect. is it working for you?
|
What do you mean by |
@vanlooverenkoen no generally, I run release #40 , on iPhone 8 real device, and just click the request location permission button, and nothing happens. |
Let me double check that today. |
I forgot to add:
The pr is updated |
@vanlooverenkoen Did you test example #40 in release run on real device IOS ? because when I run the app in debug mode location tracking is working (when the app is alive, not background or when is killed), but when I release run, location tracking not working even app isn't killed or on background/foreground. request permission working but tracking not working completely(run release). |
Hmm you could also run on simulator and select bikeride for example. |
@vanlooverenkoen I mean in Release mode completely not working location tracking, even app is alive. |
Can you test release mode on Real device IOS? when it's possible |
@vanlooverenkoen I test also in the simulator. city run/biker too. but same when the app is killed it's not working Screen.Recording.2022-09-08.at.15.10.05.mp4 |
That is normal.
Can you test by just closing the app but not killing the app. That should work normally. |
I will also test on a real device. Thanks already for your feedback!! Much appreciated! |
On the foreground/background, it's working. When the app is killed not work. but it's all in debug mode. In release mode completely nothing working unfortunately :/. thank you for the package, your effort, and your support of the community. |
Alright yes. killed state that is to be expected. That is an OS limitation. I will check the release mode later today or tomorrow. |
Indeed I am not receiving anything in release. That is strange. Let me investigate. |
When I go to the background I do see the blue pill in the status bar which indicates that the app is using location in the background. |
Yes, location permission is working, but Tracking is not. I think Blue pill means the app has always location permission and be attention the app can track or track your location. |
flutter-background-location-tracker/ios/Classes/SwiftBackgroundLocationTrackerPlugin.swift Line 134 in f127ee3
You can see here what is happening. I will investigate this. And fix this major issue with #40 🙈 |
Okay, thank you for your effort. I will wait :) |
Maybe it is the same issue as we had on Android: long instead of int. but we are already using a |
Very weird that it does work ik debug on a real device. But not in release on a real device. 🤯 |
yes exactly, 🥲😔 |
I am getting the same error in release on Android. 🤯 |
I think I found it!! There was a bug related to this. (flutter/flutter#91841 (comment)) I found that I had to add the
|
@Shahmirzali-Huseynov is it possible to test again? |
Yeah, after adding |
I will be fixing the comments on my pull request. and after that, I will close it. |
It's working when the app is in the foreground, but when I close the app, not updating.
by the way, I got the always permission. there is no problem with permissions
The text was updated successfully, but these errors were encountered: