Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unfortunately, it is not possible to use the SmsUserConsentAPI to dynamically read the first two letters of the sender name. The SmsUserConsentAPI is used to request user consent for certain actions, such as sending SMS messages, but it does not have the functionality to extract information from the sender name.

If you need to extract the first two letters of the sender name, you may need to use a different API or tool that is specifically designed for that purpose, such as a regular expression or a string manipulation function. Alternatively, you may need to modify the way the sender name is sent or formatted in order to make it easier to extract the desired information.