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:
Then I'm trying to call the value stored in the tinyDB and send the message like this:
And this is the error i get:
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??
You should add some data validation before sending the message, something like this
By the way, the if true
statement does not make sense, you can remove it...