You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Override
public void onCreate() {
super.onCreate();
mServiceContext = BlueCatsSDKInterfaceService.this;
mBeaconManager = new BCBeaconManager();
mBeaconManager.registerCallback(mBeaconManagerCallback);
Log.d(TAG, "onCreate");
}
@Override
public int onStartCommand(final Intent intent, final int flags, final int startId) {
Log.d(TAG, "onStartCommand");
super.onStartCommand(intent, flags, startId);
String appToken = "";
if (intent != null && intent.getStringExtra(BlueCatsSDK.EXTRA_APP_TOKEN) != null) {
appToken = intent.getStringExtra(BlueCatsSDK.EXTRA_APP_TOKEN);
}
// add any options here
Map<String, String> options = new HashMap<String, String>();
BlueCatsSDK.setOptions(options);
BlueCatsSDK.startPurringWithAppToken(getApplicationContext(), appToken);
Log.d(TAG, "startPurringWithAppToken " + appToken);
// start the service and keep running even if activity is destroyed
return START_STICKY;
}
@Override
public void onDestroy() {
Log.d(TAG, "onDestroy");
super.onDestroy();
}
private BCBeaconManagerCallback mBeaconManagerCallback = new BCBeaconManagerCallback() {
@Override
public void didEnterBeacons(List<BCBeacon> beacons) {
Log.d(TAG, "didEnterBeacons");
super.didEnterBeacons(beacons);
}
@Override
public void didExitBeacons(List<BCBeacon> beacons) {
Log.d(TAG, "didExitBeacons");
super.didExitBeacons(beacons);
}
@Override
public void didRangeBeacons(List<BCBeacon> beacons) {
Log.d(TAG, "didRangeBeacons");
super.didRangeBeacons(beacons);
}
};
The didEnterBeacon() and didExitBeacon() method calback are getting called by didRangeBeacon() method is not getting called.
Also checking the deatils of deacon in didEnterBeacon() the proximity value is getting null and accuracy is getting -1 every time when I are the app
Note : I am testing the app by using other beacon transmitter app by replacing the ProximityUUID with available ProximityUUID in Bluecats portal not with Real Beacon device
Help me with this.
The text was updated successfully, but these errors were encountered:
private BCBeaconManager mBeaconManager;
The didEnterBeacon() and didExitBeacon() method calback are getting called by didRangeBeacon() method is not getting called.
Also checking the deatils of deacon in didEnterBeacon() the proximity value is getting null and accuracy is getting -1 every time when I are the app
Note : I am testing the app by using other beacon transmitter app by replacing the ProximityUUID with available ProximityUUID in Bluecats portal not with Real Beacon device
Help me with this.
The text was updated successfully, but these errors were encountered: