Search code examples
androidgeolocationgpslocation-updates

Getting location trigger from Android OS


Is there a way to get a trigger from Android OS, if a user enters in a predefined area(Lat long list given to the OS) ? e.g. If I give lat long of a particular restaurant to the OS, is there a way OS can send me a trigger when user enters the restaurant?

Thanks


Solution

  • Your description resembles you are in need of Geo fencing. It allows you to get triggered whenever user enters some proximity.

    You can refer here which provides tutorial to fulfill your requirements.