I am having trouble emitting an iBeacon from an android device, the Nexus 6. I have no problem detecting the beacon signal that I am emitting from my android devices or an iTouch, but I cannot locate the signal from an iPhone. I am using the altbeacon library and using the BeaconTransmitter class. I put in a separate thread.
new Thread(new Runnable() {
@Override
public void run() {
mBeaconTransmitter = new BeaconTransmitter(CredentialActivity.this, new BeaconParser().setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));
beacon = new Beacon.Builder()
.setId1("BA39A880-799C-46FA-86AB-A4AC51927BAA")
.setId2("1")
.setId3(String.valueOf(selectedBouncer))
.setManufacturer(0x0000) // Choose a number of 0x00ff or less as some devices cannot detect beacons with a manufacturer code > 0x00ff
.setTxPower(-59)
.setDataFields(Arrays.asList(new Long[]{0l}))
.build();
mBeaconTransmitter.startAdvertising(beacon);
}
}
).start();
}