0

I am writing an Android app that talks to a server. The server has information that is updated irregularly, and the app must be informed of each update. My current solution is to have the app query the server at regular intervals to see if the information has been updated.

Is there any way to have the server initiate the interaction (say, only when the information is actually updated)? I have heard about "Remote Intents" which simulate this behavior, but I have not been able to find any information on them. Does anyone have any advice on how to make this work?

Jeffrey
  • 1,681
  • 3
  • 13
  • 23

2 Answers2

1

You could have the server send out an SMS message, and the application checks for a certain pattern (perhaps starts with something known). The data is extracted from the message and the notification is raised.

This question deals with how to analyze incoming messages: How to analyze incoming SMS on Android?

Community
  • 1
  • 1
James Black
  • 41,583
  • 10
  • 86
  • 166
1

Read up on Cloud To Device Messaging. This is designed to do exactly what you're looking for.

maxpower47
  • 1,666
  • 1
  • 10
  • 14