-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
trigger upload on reaching wifi #755
Comments
https://github.com/westnordost/StreetComplete/blob/3d0a08bf274297fc25b0e94c87b0f8c7651810dd/app/build.gradle#L23 - this app targets API level 26, later than N according to https://developer.android.com/guide/topics/manifest/uses-sdk-element.html . It is trying to use ConnectivityManager.CONNECTIVITY_ACTION https://github.com/westnordost/StreetComplete/blob/master/app/src/main/java/de/westnordost/streetcomplete/data/QuestAutoSyncer.java#L63 According to https://stackoverflow.com/questions/36421930/connectivitymanager-connectivity-action-deprecated "Apps targeting Android N do not receive CONNECTIVITY_ACTION broadcasts"
|
The official documentation states
https://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION The receiver is registered programmatically with Context.registerReceiver(). |
I tried to reproduce it and run out of ideas how it may be triggerred. |
Note that I noticed one issue that I have yet to fully debug but would be made more significant by #753 change.
Is upload attempt triggered only on edits? Because if I edit without Internet connection and return to wifi it seems that it is not triggering upload and changes are stuck for a long time (until edit/manual upload?).
The text was updated successfully, but these errors were encountered: