Texting not receiving in a demo app, works fine in a simple display test though

I have used this simple Texting test, and all works.
textTest

So now I'm attempting this project with Texting see
Video here

, but the text message is not being received.

It looks like the [Texting1.ReceivingEnable] is missing in the below project blocks, is this correct? My next question may be where it should be inserted, before the do?
notReceiving

Any advice greatly appreciated.

Sidebar: my sending phone uses Google messaging with RCS On, but to get the receiving phone to work with the AI Texting feature, RCS had to be off.

set it in Screen.Initialize before receiving a sms
see also my example project from here

see also the discussion about RCS messages there...

Taifun

Thanks Taifun,
So your test worked perfect of course.
I added the 'set' as shown, but the AI app doesn't seem to be doing the comparison with the 'number' vs 'global registered phone' (see post 1 - image 2)and then populating 'LabelReceivedSMS', I'm guessing.
addedEnable
Not displaying the incoming trigger message or any message.

It looks like this code should display Any text message sent by the registered_phone.
Every test I see with 'Texting' give the received number in this format "+1 727-000-0000", but replacing the non-space, non-hypenated number made no difference.

Please provide a screenshot of all relevant blocks

Taifun

I modified your app to compare a global registered_phone value (in this exact format: "+1 727-NNN-NNNN"), to the incoming message number received by AI's Texting module. And this is the exact format extracted from incoming messages.

As far as I understand, this is working for you

and you have problems to filter by phone number
Do not moify argument number

Try the contains block

Taifun

Thanks Taifun,
My apology for lacking detail in my last post. I needed to say I suspected the 'compare texts' of the phone number may have been failing, because of how the global phone was entered. Didn't help.

Yes, the purpose of the 'set number to' block wasn't clear to me.

Are you suggesting to replace the 'set' block with a 'contains' block? I don't understand the (original) purpose of the 'set' block having the 'replace all', 'segment', and 'replacement'. So the contain block will have the: 'replace all', 'segment', and 'replacement' also?

The sugestión was to check only for a part of the phone number. Let's assume, the phone number is +1 727-1234-5668, then you coukd use the contains block like this

If contains number
            5678
Then...

To do it correctly let me suggest to remove all special characters from the phone number sbd check for only the numbers, i.e.172712345678

Use the replace all block several times to do this and use Do it for debugging

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Taifun

Ok, it is working!

I Disabled the entire Set Block.
Messages are now displayed and everything works.
Arduino outputs are switched off and on as intended.

Taifun,
You have a Telephone Manager extension that can get cellular signal strength and more?

You can find it here

Taifun