Android daily updating geofences -


i'm working on creating coupon/deals app. premise each day there special deals @ different stores. when user happens close store (within geofence), i'd send notification user of coupon/deals @ store.

given stores may change daily, i'm trying figure out best way update geofences.

one idea - use alarmmanager create alarm trigger @ 12 each day sends intent starts service queries server > pulls list of new geofences > sets new geofences.

is reasonable? there better way handle it?

thanks!

you're on right path, check commonware's repository

it doesn't keep device on wake , service call.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -