[Bug] Refresh Button Completely Borked.
Overview
Everytime I Press Refresh Button, Always Shows "No Wifi Connection", Even When App Is Running In Background, With Phone Connected To Wifi, With Internet Access.
How to reproduce
- Turn On System Wifi.
- Connect To Local Wifi.
- Verify Connection To Internet.
- Manually Refresh Widget Using Refresh Button.
- See Error.
Version
v1.6.4
Android Version
Android 15, Xiaomi HyperOS 2.0.1.0
Device Model
Xiaomi Redmi 13C 5G
Update :- Widget Only Works Under VPN Connections Over Wifi. Not On Traditional Wifi.
Interesting, for me everything works perfectly on Android 13. I'll have to do some testing on Android 15.
Is There A Way To Obtain Log Info Of What's Happening Behind The Scene? Maybe That Will Be Able To Solve The Problem. Please Let Me Know.
You should be able to do so with LogFox
Sorry, A Little Late.
Here's Everything I Could Find :-
1752642327.999 1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:network packageName:com.w2sv.wifiwidget
1752642327.999 1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:passive packageName:com.w2sv.wifiwidget
1752642328.000 1000 28319 28369 I SmartPower: com.w2sv.wifiwidget/10430(4323): idle->background(333706ms) R(broadcast start Intent { act=com.w2sv.wifiwidget.action.REFRESH_DATA flg=0x10000010 cmp=com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider (has extras) }) adj=915.
1752642328.008 1000 28319 29957 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.009 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642328.161 1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.162 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642328.293 1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642328.293 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.251 1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.252 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.411 1000 28319 28939 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.412 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642331.556 1000 28319 30814 I AppWidgetServiceImpl: updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
1752642331.557 1000 28319 28611 D AppWidgetServiceImpl: Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
1752642333.281 1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:network packageName:com.w2sv.wifiwidget
1752642333.281 1000 28319 28337 D GnssSsruImpl: onLocationPermissionsChanged provider:passive packageName:com.w2sv.wifiwidget
[2025-07-16 10:23:51.500 Uid(value=1000):28319:28690 I/AppWidgetServiceImpl]
updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
[2025-07-16 10:29:56.107 Uid(value=1000):28319:30851 I/AppWidgetServiceImpl]
updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
updateAppWidgetInstanceLocked widget: AppWidgetId{283:Host{HostId{user:0, app:10311, hostId:1024, pkg:com.saggitt.omega}}:Provider{ProviderId{user:0, app:10430, cmp:ComponentInfo{com.w2sv.wifiwidget/com.w2sv.widget.WifiWidgetProvider}}}} from uid: 10430 pid: 4323
[2025-07-16 10:29:56.107 Uid(value=1000):28319:28611 D/AppWidgetServiceImpl]
Trying to notify widget update for package com.w2sv.wifiwidget with widget id: 283
Also I Noticed, Sometimes The Widget Refresh Button Works As Expected, But Sometimes It Shows The Same "No Wifi Connection" Text.
Would you mind giving https://github.com/w2sv/WiFi-Widget/releases/download/1.7.1-rc1/1.7.1-rc1.apk a try and see if it solves the issue?
Nope. Still The Same. Should I Paste Logs About The New Apk?
Also, Neo Launcher Is Having Issues With Widget After Update. Homescreen Refreshes Continuously, And The Widget Is Removed Automatically By Launcher, Immediately After Placing. After This The Continuous Homescreen Refreshing Stops.
Okayy, very strange. I just installed the latest neo launcher from their GitHub releases (I assume you're referring to https://github.com/NeoApplications/Neo-Launcher) and added the widget from the new app version to it, but again, everything works as it should for me. Does the issue only occur in conjunction with neo launcher?
Yes. It Never Occured When The Same Setup Was In Other Old Device.
The Automatic Removal Of Widget Only Occurs With This Widget. And Also, When I Press And Hold The Widget To Drag And Drop It To It's Place, Entire Launcher Refreshes Several Times, And That's When It Either Get's Misplaced Over Another Widget, Or Gets Removed. This Does Not Happen With Any Other Widgets.
All Other Widgets Work Perfectly Fine, And Can Be Placed Without Any Glitches.
Maybe It Is Related To Launcher-Side Defect, But This Only Happening With This Widget Is A Little Weird.
Hey @atikattar1104, I just released a new version that might solve the issue. Would be great if you could give me some feedback. I suspect it has to do with the fact that before the update being connected to a non-active WiFi network was considered a disconnected state, which I now fixed.
Ok. Some Improvements, Some Weird Behaviour, But Mostly Usable Now. Here's What I Noticed :-
The Widget Now Works When Value Checkboxes Are Modified. Like If I Enable/Disable Something Like NAT64 Prefix Or Anything From Widget Configuration, The Widget Starts Working Like Normal, While The Refresh Button Starts Working Normally.
But After Some Time When App Is Not In The Android's Recent Apps Page, And I Click The Refresh Button, The No Wifi Connection Text Shows Up, While Wifi Connection Still Exists. And The Same After Clicking It Multiple Times.
But Since I Don't Usually Refresh The Widget Most Often, It Works For Me.
Does that still only apply to usage with Neo Launcher?
And am I right in assuming that you don't actually need to change the widget configuration for it to work, but that it suffices to just open the app and have it in memory?
Nope, Even System Launcher, Fossify Launcher, And Other Launchers Also Has Issues.
And I Was Wrong About Having App In Memory Makes Widget Work. Only Config Modification Removes No Wifi Connection Text Disappear, And Data Starts Loading As Expected.
Also For The Later Part, As Soon As I Get To Home Screen After Modifying Widget Config In The App, It Immediately Starts To Load Expected Network Data, Without Even Clicking Refresh Button.
Maybe The Way This Works, If Implemented On The Refresh Button, Can Fix It.
As Soon As I Get To Home Screen After Modifying Widget Config In The App, It Immediately Starts To Load Expected Network Data, Without Even Clicking Refresh Button.
For This One, The Launcher Is Not Being Refreshed, Like It Used To Before. It Happens Even Without It.