Uniquie notification for each beacon (more than 20 beacons)

I am creating an iOS application in which I would like to process more than 20 iBeacons. Basically all beacons added to the web portal should be handled by the application. Since there is an iOS limit on the number of regions that will be tracked as 20, I cannot give different local notifications for beacons in the same region (with the same UUID).

Is there a way to handle this?

+3


source to share


1 answer


Several points:

  • The 20 region limit refers to the number of items CLRegion

    that can be registered with one application. This does not mean that you can only spot 20 lighthouses. ... Since every object CLRegion

    can leave major and / or minor zero (making fields wildcards), each can map billions of beacons.

  • Beacon apps typically use local notifications rather than push notifications.



The way you set up the many different notifications coming from different different beacons is as follows:

  • Define a single wildcard scope that matches all of your beacons. (Or multiple areas if needed to trigger the background).

  • Run monitoring and range for each of these areas.

  • In the callback, didRangeBeacond:inRegion

    store a flag for each individual beacon to see if a notification has been previously sent to you. If not, set the flag to true and invoke a local notification specific to these beacon IDs.

+2


source







All Articles