Tutorial app runs when Get QR code; Does not run if Download app

56 views
Skip to first unread message

AA

unread,
Apr 8, 2019, 2:29:49 PM4/8/19
to MIT App Inventor Forum
Hi Everyone,
I ran the code on this page and it works when I press the button to Get QR code for this tutorial. I scanned the QR code with the app inventor on my phone. It worked exactly as intended. I sent a text from one phone to the phone running the app and the app replied by voice and sent a reply text.

However, when I click Download App Inventor Source and load it to http://ai2.appinventor.mit.edu and put the code in My Projects list and try to run it from there, it does not work. I send the text but nothing happens on the phone running the app.

Thank you for any help.

TimAI2

unread,
Apr 9, 2019, 5:11:04 AM4/9/19
to MIT App Inventor Forum
What did you try to run it on, your device or the emulator?

This app may be suffering from not having been updated following Google's new permissions requirements for sending texts/messaging...

AA

unread,
Apr 9, 2019, 7:57:02 AM4/9/19
to MIT App Inventor Forum
A couple different attempts. Downloaded app source code from http://www.appinventor.org/content/ai2apps/simpleApps/noTexting .  With no changes to source code, loaded notext.aia file on 
1. Macbook air 10.14.3 and 
2. old Dell Venue

Sent text from 
1. cheap Android Cricket phone with wifi and a sim card using messages and Google voice 
2, iphone 6 with sim card and wifi using imessage and Google Voice

In these attempts, the app don't recognize a text was received.

Changed source code so and checked box to enable google voice and set receiving enabled. Then, the return text message is generated but I have to press a button to sent it.

If I use SendMessageDirect instead of sendmessage then a return text is sent. However -- it does not send the text to the sender but to the active google account.

I could accept that all of this has to do with Google Voice settings except that the app works flawlessly by reading the QR Code from the professor's site. 

Thank you for any help/suggestions.

TimAI2

unread,
Apr 9, 2019, 8:20:51 AM4/9/19
to MIT App Inventor Forum
Did you try compiling the downloaded aia, then try that on your phone ?

AA

unread,
Apr 9, 2019, 9:01:02 AM4/9/19
to MIT App Inventor Forum
I downloaded the AI companion from http://ai2.appinventor.mit.edu and it made no difference.

By compile the aia, do you mean to build it? If that is what you mean, yes I did that too. 

A text is not automatically sent unless I use SendMessageDirect but in that case, the automatic return text is sent not to the sender but always to the active google account. Do you know how to specify for SendMessageDirect to reply to the number from which the text was sent? 

Thank you for any help/suggestions!

Chris Ward

unread,
Apr 9, 2019, 4:07:27 PM4/9/19
to MIT App Inventor Forum
Does the code pre-date Google's latest security measures? That might explain why it would run under the Companion but not as an installed App.

CC

unread,
Apr 16, 2019, 10:02:48 PM4/16/19
to MIT App Inventor Forum
It's all fixed and working! I had to just uncheck Enable Google Voice! Thank you all for your help!
Reply all
Reply to author
Forward
0 new messages