bogkonstantin / android_income_sms_gateway_webhook

Simple Android incoming SMS to URL forwarder
MIT License
388 stars 109 forks source link

Add support for getting sender's contact name #36

Open scottmconway opened 1 year ago

scottmconway commented 1 year ago

Added the %fromName% attribute, which will attempt to be the sender's name in your contacts, and fallback to the same content as %from% if the contact book cannot be read, or no matching contact is found.

The user will be prompted for the READ_CONTACTS permission during the request for RECEIVE_SMS in onCreate. When updating the app, the permission won't be prompted, as it isn't required. I'm not sure if there's a good way to do a one-off "nudge" for this permission when this update is released.