android-sms-hooks icon indicating copy to clipboard operation
android-sms-hooks copied to clipboard

Receiver phone number for devices with multiple SIM

Open const-tmp opened this issue 3 years ago • 5 comments

Is there any way to implement this feature?

const-tmp avatar Oct 25 '22 14:10 const-tmp

Thanks for the suggestion. I've investigated this feature a while back but could not find enough resources or documentation on how to implement it (how to get the number of the SIM in a broadcast receiver).

If you know another open source app the has this feature please let me know so that I can learn how they implemented it.

sa3dany avatar Oct 26 '22 11:10 sa3dany

Unfortunately no. I searched for any app or documentation too, but didn't find anything useful.

const-tmp avatar Oct 28 '22 10:10 const-tmp

I checked my current SMS app and even it does not show the SIM number. Based on my limited research this is because the number is not stored in the SIM and is unknown to the phone (I think.) But maybe it is possible to know the SIM slot e.g. Slot 1, Slot 2 etc. and include the SIM slot name if set in the system SIM settings.

sa3dany avatar Oct 28 '22 14:10 sa3dany

https://github.com/pppscn/SmsForwarder

This App has the feature hope this helps android-sms-hooks) is better for me as it is very simple....SmsForwarder is overkill Hope you can fix this app.

Support for sim number, multi sim and a custom field in the webhook data would make this app perfect.

guyt101z avatar Nov 16 '22 18:11 guyt101z

Thanks @guyt101z. Looks like the relevant code is in this file and this file.

sa3dany avatar Nov 16 '22 21:11 sa3dany