Interested in a fashionable thing called iBeacon.

Got a question:

For example, when entering a store, I want the user to be sent a notification: "Hello customer!". The client enters the store, receives a unique sensor identifier and the application displays a local notification, the text of which is pre-recorded in the application.

But what if I want to change the text of the notice to "Hello customer! We have a discount today." Have to release an application update with new text? After all, I will not be able to run in the background a method that will request a new greeting text from the server. Or can I?

  • Thought about the scheme server and push notification? - iFreeman
  • You mean, get data from the sensor, send a request to the server and get a push? Thought, but this is only possible when the application is running the same. From the background mode, I can not send a request to the server. - michilly

1 answer 1

Did this. We stored the notification database locally and periodically synchronized it.

That is, the server has all the beacons and the text of notifications for each and for their chains, this whole business is loaded into the app when it is active. Then in the background at the sight of a beacon the text is locally loaded.