When deploying an SMS service using an Android phone, we encourage you to follow the recommendations below to make your service as reliable as possible:
Keep phone stationary and secure
In order to maintain reliable internet connectivity, we recommend keeping the Android phone stationary, not carrying it around like a normal mobile phone.
In order to prevent the Android phone from being stolen, it may be a good idea to keep it in a locked office, drawer, or cabinet when unattended.
Keep phone plugged in to electricity
The Telerivet Gateway app works best when the phone is plugged in to electricity. If the electricity goes out, the phone's battery will allow your service to keep working until the electricity comes back online.
Note that if the Android phone's battery is depleted entirely, you may have to manually turn the phone on again once there is electricity.
Some Android phones have an unreliable Wi-Fi connection when the phone is not plugged into electricity. This is why even if the phone's battery is charged, we recommend keeping the phone plugged in.
Disable Battery Optimization (Android 6.0+)
Starting with Android 6.0, Android phones automatically optimize battery life by limiting when apps can wake up. This feature, also known as "Doze", prevents the Telerivet Gateway app from maintaining a reliable connection to Telerivet's server when the phone is running on battery power. To improve reliability while on battery power, disable Battery Optimization for the Telerivet Gateway app:
- Open the Settings app.
- Click Battery
- Click the 3-dot menu and click Battery Optimization.
- Click the blue/green bar and click All apps
- Click the Telerivet Gateway app, then select Don’t optimize and click Done.
Make sure phone has credit to send SMS
If your Android phone is using prepaid mobile service, make sure to refill the credit before it runs out.
If your Android phone runs out of credit, you will not be able to send SMS messages via Telerivet or use mobile data, although you may be able to receive incoming messages.
If you try to send SMS messages when the phone does not have credit, the message will fail with the error "generic failure".
Set up internet with both Wi-Fi and Mobile Data
We recommend setting up the Android phone to use Wi-Fi whenever possible, since it is typically faster and cheaper.
However, if your Wi-Fi network goes offline (for example during a power outage), the Android phone will need mobile data service in order for the Telerivet Gateway app to work.
Set up your phone with mobile data service, and test that it works by temporarily turning off Wi-Fi on the Android phone.
In some cases, the Android phone may not automatically switch from Wi-Fi to mobile data or vice versa if the current network is not working. To avoid an outage in this scenario, you can configure the Telerivet Gateway app to automatically switch networks. In the Telerivet Gateway app, click Phone Settings, then scroll to the bottom and enable the Network Failover setting.