ostrya / PresencePublisher

An Android MQTT client that regularly publishes messages to notify about the device's presence
MIT License
84 stars 13 forks source link

Android Phone stopped sending online while connected to network #69

Closed FireWizard52 closed 1 week ago

FireWizard52 commented 2 weeks ago

Hi,

First off all, I want to say thanks for this great app. It has worked for several years with great satisfaction for me, telling me whether my phone was online or offline. However, yesterday the app stopped with sending the correct network status. While online on my Wifi network it constantly sends offline.

I did already several things

Nothing helps. See the picture below

Screenshot_presence-publisher-offline

Any suggestions?

Regards

ostrya commented 2 weeks ago

Hi @FireWizard52, sorry to hear that. It sounds like the app does not detect the Wi-Fi name correctly anymore, which is probably related to the recent app update. Can you check what the "Detected conditions" log says? It would also be helpful for me to look at the Developer log if you could create an export and attach it here.

FireWizard52 commented 2 weeks ago

Hi, @ostrya,

Thank you very much for your quick response.

You asked,

Can you check what the "Detected conditions" log says?

Unfortunately that screen is empty. So obviously nothing detected.

I did try to send the SSID, but that was not available. It showed NA. That might match with your suggestion:

It sounds like the app does not detect the Wi-Fi name correctly anymore, which is probably related to the recent app update..

It would also be helpful for me to look at the Developer log if you could create an export and attach it here.

The developer log can be exported, but I can't find the location on my phone. I have to sort out that first, but don't know, if I will succeed.

Regards

FireWizard52 commented 2 weeks ago

Hi @ostrya

Okay, I found it and was able to access it. Here it is

1725393509050.log

Regards

ostrya commented 2 weeks ago

Thanks. Unfortunately, the log only confirms that there is something wrong with the network detection. I did rewrite that to allow directly sending events when connecting / disconnecting to configured networks. Can you tell me which Android OS version and which device type you are using?

FireWizard52 commented 2 weeks ago

Hi, @ostrya,

Can you tell me which Android OS version and which device type you are using?

I'm using a Motorola phone, type Moto G9 plus (XT2087-2) Android version: 11

If you want more info, let me know.

Regards

ostrya commented 2 weeks ago

All right, so it looks like the detection method for wifi changes did not work as intended in Android 10 and 11. I just published version 2.6.2 (which will need some time to go through the Google Play review to be available) that should fix the issue. At least I could reproduce the behavior and verify the fix on an Android 11 emulator.

FireWizard52 commented 2 weeks ago

Okay, @ostrya ,

Thank you for your quick fix. I will wait until it is available in the Google Play store or F-Droid and will report back, as soon I have updated from 2.6.1 to 2.6.2.

Regards

FireWizard52 commented 1 week ago

Hello @ostrya,

Google has published the new release 2.6.2 in the Google Play store. I updated the app to this version and everything works again as before.

Thank you very much for your quick response and solving this issue.

Best regards