Hi,I just testing iBeacon Secure UUID.When I turn on the Secure UUID and my Android app didn’t trigger the onEnteredRegion or RangingListener.
I had turned on the Bluetooth and modify BeaconRegion to SecureBeaconRegion also set the app id and app toke in my App.
what did i miss?
Here is my code:
@Override
public void onCreate() {
super.onCreate();
EstimoteSDK.initialize(getApplicationContext(), "XXXX",
"XXXXXXX");
beaconManager = new BeaconManager(getApplicationContext());
beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
@Override
public void onServiceReady() {
beaconManager.startMonitoring(new SecureBeaconRegion(
"monitored region", UUID.fromString("A9D86F4F-F00B-4BA4-335A-DBA487EA384B"),
null, null));
}
});
beaconManager.setMonitoringListener(new BeaconManager.BeaconMonitoringListener() {
@Override
public void onEnteredRegion(BeaconRegion region, List<Beacon> beacons) {
Log.d("estimote UUID", beacons.get(0).getProximityUUID().toString());
}
@Override
public void onExitedRegion(BeaconRegion region) {
}
});
}
My phone is Nokia 8 ,Android 7.1.1