I'm trying to make my android device as virtual iBeacon using alt beacon library, I'm able to make my device as iBeacon but it is not detecting in iOS(Core Location) or Android devices. Here is the code I'm using
Beacon beacon = new Beacon.Builder()
.setId1("UUID")
.setId2("101")
.setId3("201")
.setManufacturer(0x0075)
.setTxPower(-59)
.setDataFields(Arrays.asList(new Long[]{0l}))
.build();
BeaconParser beaconParser = new BeaconParser()
.setBeaconLayout(BeaconParser.ALTBEACON_LAYOUT);
BeaconTransmitter beaconTransmitter = new BeaconTransmitter(getApplicationContext(), beaconParser);
beaconTransmitter.startAdvertising(beacon, new AdvertiseCallback() {
@Override
public void onStartSuccess(AdvertiseSettings settingsInEffect) {
super.onStartSuccess(settingsInEffect);
Log.d(TAG, "Transmission started");
}
@Override
public void onStartFailure(int errorCode) {
super.onStartFailure(errorCode);
Log.e(TAG, "Transmission failed with error code : " + errorCode);
}
});