[GH-ISSUE #421] Sync services will be triggered on switch of connection from wifi to mobile #299

Open
opened 2026-02-28 01:24:03 +03:00 by kerem · 0 comments
Owner

Originally created by @alxndrsn on GitHub (Apr 8, 2016).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/421

ConnectivityChangedReceiver will respond to CONNECTIVITY_CHANGE broadcasts: github.com/ushahidi/SMSSync@a1f2224bbb/smssync/src/main/AndroidManifest.xml (L280)

CONNECTIVITY_CHANGE is broadcasted when connectivity is gained or lost, but also when connectivity type changes, e.g. from wifi to mobile:

Changes to a device's connectivity can be very frequent—this broadcast is triggered every time you move between mobile data and Wi-Fi.
https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html#MonitorChanges

This seems undesirable.

Originally created by @alxndrsn on GitHub (Apr 8, 2016). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/421 `ConnectivityChangedReceiver` will respond to `CONNECTIVITY_CHANGE` broadcasts: https://github.com/ushahidi/SMSSync/blob/a1f2224bbb4488a9772eb35a1d8648e0dc350a59/smssync/src/main/AndroidManifest.xml#L280 [`CONNECTIVITY_CHANGE`](https://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION) is broadcasted when connectivity is gained or lost, but also when connectivity type changes, e.g. from wifi to mobile: > Changes to a device's connectivity can be very frequent—this broadcast is triggered every time you move between mobile data and Wi-Fi. > – _https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html#MonitorChanges_ This seems undesirable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#299
No description provided.