optimalstrategy / sms_forwarder_app

An app for forwarding SMS messages
MIT License
55 stars 18 forks source link

App stops detecting SMS #16

Closed bilogic closed 2 years ago

bilogic commented 2 years ago

Hi,

The app recently started to stop detecting SMSes after running for a while, i.e. SMS was received by phone's SMS app, but no action taken by app. I tried SMS Forwarder's Send Test Message and it works.

Any idea how to figure out why this happens? Thank you.

optimalstrategy commented 2 years ago

The app registers an SMS receiver that should always listen for new messages in the background, even when you close the app. I suspect that it might be getting killed for some reason -- could you please check if background execution is enabled for the app? On my device this setting is located in SMS Forwarder -> App Settings -> Battery -> Allow Background Activity.

I have also done a clean install on one of my spare phones; I'll leave it running for the next few days and see if I can reproduce the issue.

bilogic commented 2 years ago

Hi!

Thanks for getting back. Yes, Allow Background Activity is enabled for SMS Forwarder.

When it did not work earlier, I killed both the SMS app and SMS Forwarder, then restarted SMS Forwarder first. That still did not solve the problem, but I did not pursue further.

Upon reading your email now, and making the battery check, I decided to test it again, this time, it forwarded an SMS. I will monitor further and see there is a consistent way to reproduce it.

Thank you.

bilogic commented 2 years ago

Hi,

I think I found the issue, my setup is SMS Forwarder -> HTTP -> XMPP, things seem to be breaking between HTTP and XMPP. Sorry for the false alarm! Will get back if I do see issues between SMS Forwarder and HTTP.

Thank you!