I am into Estimote Beacon app development and was able to send notifications using the sample app where the UUID, Major and Minor values are explicitly hardcoded in the code. I want the below requirement to be implemented using Objective C.
App will search for Beacons based on UUID, if I have 10 beacons, the Beacons are differentiated based on major and minor values and UUID is kept constant.
Once notification is send, the user clicks the app and the app should be able to determine the major and minor values of the Beacon that is in range.
Also, is it possible to make a custom service call along with sending the notification?
if you put the major and minor values to null, you will scan for all the beacons that have the specified UUID. Note that you can’t scan for a null UUID,
if you use the ranging (or monitoring) technology, the listener you set up wil provide you with CLBeacon objects, so you will be able to read the near beacon’s major and minor.
When I tried to giving null values along with BeaconNotificationsManager, no notification is generated at all. It worked only when I provided the exact minor and major value.
Yes Notification Example. If I am using null, getting error as below:
incompatible pointer to integer conversion sending’void*’ to parameter of type ‘CLBeaconMinorValue’
incompatible pointer to integer conversion sending’void*’ to parameter of type ‘CLBeaconMajorValue’
Can we make any service calls in background when notification is pushed? The scenario is I am entering a region, based on beacon minor and major value, a service call is made to server and server will identify the location of the customer.