I wrote a simple app to send a text message using a phone number fetched from a Google Sheet.
It loads properly on my phone. As a test, I also made it initiate phone calls, and that part works properly, both with .MakePhoneCall and .MakePhoneCallDirect
However, attempting to send a text with .SendMessage seemingly does nothing, and with .SendMessageDirect produces a Runtime Error.
The app is running on a Google Pixel 7 Pro. The texting app is "Messages" version messages.android_20221115_01_RC01.phone_dynamic
The error message reads:
Runtime Error
appinventor.ai_dlbezaire.SendText:
Targeting S+ (version31 and above)
requires that one of FLAG_IMMUTABLE or
FLAG_MUTABLE be specified when creating
a PendingIntent.
Strongly consider using FLAG_IMMUTABLE,
only use FLAG_MUTABLE if some
functionality depends on the PendingIntent
being mutable, e.g. if it needs to be used
with inline replies or bubbles.