-1

I am developing an android application in which the device's current location is posted to my Web API after every 3 seconds using internet. My web api is hosted on server. Without internet, location updates won't be posted to the server.

What I want is that, when internet is not available on the mobile device, want to send location using sms.

I looked into twilio. But I couldn't find a good tutorial on how to use it in android and how to send sms to a URL.

How do I post data to my server using sms without internet?

Nida Munir
  • 461
  • 3
  • 23

1 Answers1

0

I found a solution to my problem. The internet connectivity problem can be solved in the following way.

When internet is not available on your user's device, send an SMS which contains location coordinates and user name to a second mobile device in which internet is available. Then that second device will parse the incoming SMS, extract coordinates and username and will send it to the server.

Nida Munir
  • 461
  • 3
  • 23