-2

I develop an android application which will show a notification when you near a specific location .

I want to give user a notification when user enter to a specific location even if my app is turn off.

How can I do that ? My friend give me a suggest that use a Broadcast Receiver but I don't know how to implement this .

Thank in advance.

CodeMonster
  • 300
  • 5
  • 19

1 Answers1

2

You need to use geofencing. It is integrated in Android and very easy to use. Google has great documentation about the feature.

TmKVU
  • 2,910
  • 2
  • 16
  • 30
  • I do an exampe use Geofence , it run ok. But when turn off my app, it don't work ? Could you give me some suggestions ? – CodeMonster Jul 05 '15 at 04:48
  • I would like to refer to [this answer](http://stackoverflow.com/a/19573721/1702602). If you still can not figure it out, I think it is best to ask a separate question including some code. If you do so, you can comment a link to that question here. – TmKVU Jul 05 '15 at 12:21