ostrya / PresencePublisher

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

App schedules next run in the past sometimes #23

Closed ostrya closed 4 years ago

ostrya commented 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.