Rob Gleeson
Rob Gleeson

Reputation: 325

App Inventor 2: Invalid Destination Address

I'm getting the error when InviteButton.Click is pressed, when trying to send the actual message. Everything else loads up as it should, I am able to select a contact etc.

I've the following block of code:

I'm using contact picker to pick the number: Contact Picker

Then I'm trying to call the value stored in the tinyDB and send the message like this: Call Send Message

And this is the error i get: Error

Basically I'm trying to pick a number from the contact picker, add to the tinyDB and when I press a button it sends the text message....can't figure it out.

Any ideas??

Upvotes: 0

Views: 2085

Answers (1)

Taifun
Taifun

Reputation: 6293

You should add some data validation before sending the message, something like this

enter image description here

By the way, the if true statement does not make sense, you can remove it...

Upvotes: 1

Related Questions