tijder / SmsMatrix

A simple SMS <--> Matrix bridge.
https://matrix.to/#/#smsmatrix:matrix.org
GNU General Public License v3.0
216 stars 36 forks source link

Dynamic long polling intervals #11

Open MurzNN opened 7 years ago

MurzNN commented 7 years ago

Will be good to create dynamic long polling intervals in app for minimize battery usage - after receive SMS - decrease poll interval to minimal for 15 minutes (maybe do this configurable), because chances that user reply to SMS in this time are maximum, and increase poll interval after this time to longer time (configurable too). This will minimize battery and traffic usage with minimum user behavior.

Gredin67 commented 6 years ago

I'm not sure I understand the issue. But I'm thinking could it be possible to monitor the activity of both the sms android service and the riot android client if it is installed on the same phone? And only waking up smsmatrix when activity is detected on one or the other?