App Inventor Classic • App Inventor Classic • FOR APP INVENTOR 2 CLICK HERE• App Inventor Classic • App Inventor Classic
This information pertains to App Inventor 1 (Classic). For tutorials about App Inventor 2, go to the App Inventor 2 Tutorials.
This tutorial shows how to use the Texting component to send and receive text messages (SMS) over Wifi. This lets instructors use App Inventor texting examples and exercises with phones that do not have mobile or data plans.
In order to use the Texting component over Wifi, the app user will need a Google Voice account and will also need to download and install the Google Voice app from the Play Store.
Once you get Google Voice set up on your phone, try the AlertMe tutorial.
Texting over Wifi uses Google Voice to send and receive messages. The mobile Google Voice app is used for receiving messages and the user's Google Voice account is used for sending messages.
Receiving a Message:Here are some of the internal details for how things work when a message is received.
Of course most of these details are not visible to the App Inventor programmer, who just needs to worry about the procedure in the Do slot.
Sending a Message:Here are some of the details for how things work when a message is sent.
Note: if the user sends a message to her own Google Voice number, it will be forwarded back to the phone., which could be very confusing. This may have implications for how you design your app.
The revised Texting component uses Google Voice to send outgoing messages over Wifi. In order to build and test an app that sends text messages over Wifi, the app developer will have to have a Google Voice account. Once the app is developed, users of the app will also have to have Google Voice accounts.
To create a Google Voice account,
The revised Texting component receives incoming messages over Wifi through the Google Voice mobile app. To download and install Google voice on your phone:
Because outgoing messages are sent through the user's (online) Google Voice account, users of Texting-over-wifi apps will be asked to give the app permission to access the user's account now and in the future. If there are more than one user account on the phone, the user will first be prompted to choose an account.
This description assumes that the user already has an active Google account on the phone. If not, the user will be asked to setup an account or login to an existing Google account.
This authentication process will happen the first time the app sends an outgoing message after it is installed. Depending on how the app and phone are used, the user may never again be asked for permission
Congratulations! You have successfully installed Google Voice and are ready to text over Wifi! This will be useful for a variety of Apps that use texting. Now try to build AlertMe, an app that allows you to try this new capability.
Done with Google Voice? Return to the other tutorials here.