-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
[BUG] location not updating if app is in background #96
Comments
I already noticed this as well. This has to do with the BackgroundQueue I use in the LocationSpoofer class. I already read the docs, but I have no idea how to accomplish this... |
I tried to reproduce this behaviour on mac OS 12, and for some reason the error does not occur. Can somebody else verify that the behaviour did indeed change ? |
Should be fixed in v0.1.9. I removed the usage of NSTimer / Timer and use a DispatchQueue instead. This should work even if the app is in the background. |
Sorry, but the bug is persistent in version 0.1.9.1. The active window must be the location simulator app. Otherwise there‘s the message „Error changing location“ (#117 (comment)). And so you can’t use location simulator with two instances of the app, because only one window can be in foreground. iOS 15.4.1 and macOS 12.3.1 |
First thing first: Running two instances at the same time is not a scenario I actively test or support. That being said: I can not reproduce this behaviour. I started two instances of LocationSimulator via terminal and started spoofing on both instances. Then I put a different app in the foreground. Everything is working. Can you write down step by step instructions of how to produce the error? The error message indicates, that there is a problem setting the location. The error described in this issue addresses the problem, that the interface is not updating since the queue is not sending any more updates. This here is a different error, since the update is send, but it fails. This is therefore a different (new ?) bug. I assume you did not try to spoof the location of the same device with both instances of LocationSimulator, because this will obviously not work. Can you send me your LocationSimulator log. Click on |
I took a look at the logs. The error occurs somewhere deep down in libimobiledevice. When trying to connect to the device lockdown returns error code -5, which means |
Nevertheless I'm unable to reproduce the newly reported error. In every case I keep this issue open for now. |
The iPhone is connected via original lightning to usb-a cable and usb-c to usb-a adapter (both from Apple Store). I will try a usb-c to lightning cable later to exclude adapter related problems and report if this changes anything. |
Both good ideas. I debugged using the Wi-Fi connection. I'll try again via a USB connection. The USB connection is faster, maybe this contributes to the error. |
Connection and cable checks revealed no further information. iPad same situation. |
Describe the bug
Location not updating if app is in background mode
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Location will still update, even if is in background
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: