Closed ostrya closed 4 years ago
When the app no longer sees a target network, it stops scheduling the next run (see https://github.com/ostrya/PresencePublisher/blame/master/app/src/main/java/org/ostrya/presencepublisher/mqtt/Publisher.java#L74 vs https://github.com/ostrya/PresencePublisher/blame/master/app/src/main/java/org/ostrya/presencepublisher/mqtt/Publisher.java#L84).
This leads to not sending notifications if the device is in deep sleep while re-entering the network.
When the app no longer sees a target network, it stops scheduling the next run (see https://github.com/ostrya/PresencePublisher/blame/master/app/src/main/java/org/ostrya/presencepublisher/mqtt/Publisher.java#L74 vs https://github.com/ostrya/PresencePublisher/blame/master/app/src/main/java/org/ostrya/presencepublisher/mqtt/Publisher.java#L84).
This leads to not sending notifications if the device is in deep sleep while re-entering the network.