Skip to content

AndroidGatewaySample

manumoreira edited this page Oct 19, 2020 · 2 revisions

Android Gateway Example App

See the following example to SMS-enable your web application anywhere in the world with no need to plug things into servers. All you need is an Android phone that can connect to the internet (via WIFI, Edge or 3G) and download the Nuntium Local Gateway app on it.

https://github.com/instedd/mobile-gateway/releases/download/3.1.1/LGW.apk

Has the following pages:

  1. index.php: Shows the required steps to get the demo going: Get the local gateway, turn it on, and copying the number on the screen to the page.
  2. create_channel.do.php: Configures the local gateway creating a channel in Nuntium with the API with the number from the previous step
  3. messaging.php: Once the channel is created, you can fill in a form to send a message, and you can see in a link the received messages.
  4. send_message.do.php: Sends the message with the data from the previous form in messaging.php
  5. received_messages.php: Shows the list of messages sent to the application from your users, querying via RSS

Note: Since SMSs are being sent by the android phone, their rate is limited to SIM card speed of 1 outgoing message every a few (typically 6) seconds.

Clone this wiki locally