bogkonstantin / android_income_sms_gateway_webhook

Simple Android incoming SMS to URL forwarder
MIT License
352 stars 96 forks source link

More data points #39

Open anotherdevs opened 1 year ago

anotherdevs commented 1 year ago

Hi

I used this program: https://sms.envaya.org/serverapi/, but because the old Android version 2.3 can't handle SSL anymore I have tried your program. It works great.

Could you implement more data points?

version: To monitor when an update is due.

network: Whether the phone is connected to WiFI or mobile.

battery: The current battery percentage.

power: What power source. To monitor if the power has been disabled.

If this could be combined with the this request: https://github.com/bogkonstantin/android_income_sms_gateway_webhook/issues/31 then monitoring of the devices health is easy. My proposal to use HEAD would not suffice though. A specific monitoring endpoint would needed to be provided.

anotherdevs commented 1 year ago

You could also add ICCID: https://developer.android.com/reference/android/telephony/SubscriptionInfo#getIccId() https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId() per this recommendation: https://developer.android.com/training/articles/user-data-ids#mobile-service-subscriptions

If the backend knows the SIM card number, it can be used to link messages together, without having to check if sim equals 1, then use this number fx.

Useful when running multiple phones.