brarcher / protect-baby-monitor

Android-based Baby Monitor
GNU General Public License v3.0
63 stars 32 forks source link

No alarm when connection between parent and child device lost #42

Open pieqq opened 6 years ago

pieqq commented 6 years ago

App/devices info

ProtectBabyMonitor v0.3 (downloaded from F-Droid) Devices:

Both devices are connected to the same network.

Steps

  1. Start the app on both devices (Samsung = parent device, Oneplus = child device)
  2. Connect the parent device to the child device using Select Child by Address
  3. Simulate a connection loss by turning airplane mode on on the child device.

Expected result

An alarm should go off on the parent device.

Actual result

Nothing happen on the parent device, which keeps saying "Listening..."

Additional information

Please let me know what kind of logs I can attach, and how (I'm pretty tech-savvy but I'm not very familiar with Android development).

brarcher commented 6 years ago

Hm. I have two devices I'm testing with, Both Android 7. With those, I do see that if one is a parent and one is a child, and the child exits listening, the parent shows Disconnected and had a audible alert.

If you could grab the adb logs from the parent and child device when you see this, that could help in tracking down the issue. Also see if there is a difference between using the Android 8 device for a parent or a child. I do not have an Android 8 device to test again, so maybe there is an issue there.