GeoFencing In Unity

Has a request this morning for this…thought it was some geopolitical red line BS…:slight_smile: however a quick search told me what it was. However I could not find info on geo-fencing in Unity…at least not what i was looking for. Is there an asset or plugin for this and if not how hard/easy is this to get done? Seems it would be a great tool for AR games or virtual tours of a real world environment that gave details on the locations history or who sculpted the statue you were looking at etc. .

Input.location might give you a place to start with. It’s not precisely geofencing.

Yes. I figured that with some push notification hocus pocus. Client wanted to have their game be able to be played by one bar’s team versus another bar’s team and they would get notified on their mobile when they entered and their game stats would be logged for that establishment.

Found this… https://developers.arcgis.com/en/features/geotrigger-service/ It looks fairly straight forward. I imagine the establishment taking part in the gaming would have to implement it on their wifi? The mobile user get’s within the establishment’s geofence and a push notification is sent that there is a game going on there and they can get free meals or a drink if they participate and score above a certain threshhold. I suggested that teams could be implemented with this as well so it would be a multiplayer kind of thing with one establishments patrons playing against another’s for rankings or even something like a national championship tournament with one restaurant chain playing against another restaurant chain being set up. Not quite sure as I am still wrapping my head around how this might be done.

If you do a search on Alibaba of GPS Medical Alert style Android watches or GPS Dog monitors you will find a few Chinese products that do GPS fencing with servers to do that.

Maybe you can license the source although I’m willing to bet that if you knew the right search terms it’s PD at some university somewhere but there you have it, Google and Bing are search engines not product placement vehicles. I bet they have true search engine function internally at those places. LOL.

You should put in the asset store not that I think I’ll ever use it but I’m a nerd so would buy it.

I don’t see a price for the service but I think it’s a service best used and already used to slip customers discount coupons when they are in the store to get them to impulse buy.

I think it would be pretty cool to use for bars that feature live entertainment to push messages about who’s playing at their bar at right now when folk are out barhopping. In fact, I think one could create an entire service based on pushing that type of information out at the right time locally. And be a business directory too. I guess that’s best left up to Yelp or Google or whatever.

Where you live you should develop a framework that you can sell and test it based on one of the more favored Georgia locals like Peachtree Street or St Simon’s Island. Then you sell the framework and they fill in the data. e.g. The state government of Georgia for their state parks.

iOS or iOS/Android/WP?

The iOS API at least looks pretty straightforward as far as building a plugin… I’m actually looking to pull geofence data into Unity as well so send me a message if you’re interested in sharing work.

This is targeted for several dozen bars and restaurants around Atlanta…but yeah…Once I get the framework tricks nailed and figure out the vendor side of the push notification this could be quite a money maker and could turn the discount coupon thing into a gamified format where discounts can be graduated based on gameplay wins, losses and high scores…Like…Feed the cop so many donuts from the virtual slingshot and win a free jelly donut and coffee at Dunkin Donuts. It looks like you use the Esri iOS and Android wrappers and they pick up messages from a server and push them to the mobile units entering the geofence. I presume this would need an admin interface that each establishment could sign into to set their promotions for that day and hour.

1 Like

GREAT. I am certainly interested in sharing work. PM with email addy on the way. I didn’t see any WP API at the Esri site.

Well good for you is that ESRI is practically a branch of the government, make your sales job much easier.

I’ll try to set it up as well. I have Android, iOS, & Windows Universal (no Windows SDK yet though) to test with.

I’ll subscribe to this thread.

There is a Geofencing for UNity, that allows me to publish for IOs and Android?

1 Like

I am searcing for this for the weeks, but still can’t find a solid solution.

How can I implement geofence triggered notifications even app is not running?

Unity mobile docs(iOS notifications | Mobile Notifications | 1.4.4) has IOS location trigger but Android(Android notifications | Mobile Notifications | 1.4.4) has nothing about neither location trigger nor Geofencing.

2 Likes

any updates on how to do this?

anyone found a solution?