Skip to content

mekjr1/im3nsa-android-channel

Repository files navigation

Mensageiro Android Channel

While it's great to have full integration with mobile operators at the SMSC level, that's not always practical (or in some cases even possible). As such, it's important to have an alternative method for enabling two-way SMS messaging.

The Android Channel for Mensageiro Platform does just that by using an inexpensive Android phone -- the purchase of which is becoming nearly ubiquitous around the world. Since Android phones are essentially little computers with redundant network and power, it makes it easy for us to leverage it's GSM modem for our needs.

The Mensageiro Platform Android Channel is open source, licensed under AGPL. Copyright 2018 Abdul Meque, NM Technology Services & Solutions and SD Consultores.

Using the Mensageiro Platform Android Channel

Once you download the app from Google Play (or sideload it as necessary), opening for the first time will provide you with a claim code. It will look something like 'ABC 123 XYZ'. Once you've created your account on RapidPro, you can then enter this claim code on your account to register your Android device to your account. Once it is connected, every incoming SMS message received on the phone will be sent to your RapidPro account and every outbound message from your RapidPro account will use your Android phone to deliver the message.

Administrator Administrator

Administrator Administrator

Administrator Administrator

Administrator Administrator

for Developers

Packs project

The Mensageiro Android Channel project is split up into two projects, the main project and packs. The main project is where you will find all the meat for the Android Channel relaying code. The companion project packs is used to create messaging packs to support the client. This is to allow the client to send more messages as the SMS usage on Android is rate-limited per project. Note that this project doesn't have any source code of its own. The one bit of code it needs for sending messages is linked from the client project. It doesn't even have a proper AndroidManifest.xml as this is generated by the build script for each pack it creates.

Building

This is easy peasy. We use ant.

% ant debug

To build the message packs, there's a shell script.

% ./buildpacks.sh

That's it!

Developer Mode

You can put the client in developer mode by tapping on the logo 11 times. Once you've acheived this, you'll see a short toast at the bottom of the window. Once this is enabled you will see additional options in the settings menu -- chief among them is the ability to point your client to an IP Address which is useful if you are running RapidPro in your development environmnet.

About

The Android Channel for Mensageiro Platform enables two-way SMS messaging using an inexpensive Android phone as an SMS Modem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published