Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an Android device act as an iBeacon?

Can an Android device act as an iBeacon and figure out when other Android devices come in its range? Do those other Android devices need to have Bluetooth turned on?

If a customer comes into my shop and he doesn't have my app installed on his device, can iBeacon work, or must he install the app first? There are so many customers are visiting our shop daily, but if they don't have my app installed, does the iBeacon concept work?

like image 830
Hardik Joshi Avatar asked Oct 26 '13 04:10

Hardik Joshi


People also ask

Can Android use iBeacon?

All beacons, whether iBeacon, Eddystone or sensor beacons can be used with iOS and Android. The compatibility is achieved through the implementation of common Bluetooth standards on these mobile platforms.

How do you make a beacon on Android?

Turn your Android into an Emitting (publisher) Beacon To Build your data, you will use the advertise data builder. Similarly, create an array of bytes containing the AltBeacon prefix, your UUID, major, minor, and tx power. Once this is done you've completed the beacon!

What is iBeacon Android?

The iBeacon enables smartphones, tablets and other devices to trigger actions when they get in close proximity to a device that transmits iBeacon (commonly those devices are called beacons).

Can an iPhone be an iBeacon?

Overview. Any iOS device that supports sharing data using Bluetooth low energy can be turned into an iBeacon.


Video Answer


1 Answers

YES This is possible on Android 5+, and you can find open-source code for transmitting as a beacon in the Android Beacon Library. There is also a full-featured version of a beacon transmitter in the Beacon Scope app in the Google Play Store.

Here's an example of transmitting iBeacon with the Android Beacon Library:

Beacon beacon = new Beacon.Builder()         .setId1("2f234454-cf6d-4a0f-adf2-f4911ba9ffa6")         .setId2("1")         .setId3("2")         .setManufacturer(0x004c)         .setTxPower(-59)         .build(); BeaconParser beaconParser = new BeaconParser()         .setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"); BeaconTransmitter beaconTransmitter = new BeaconTransmitter(getApplicationContext(), beaconParser);  beaconTransmitter.startAdvertising(beacon); 

You can also transmit as a beacon on rooted Android 4.4.3 devices, but it requires an app installed with system privileges.

Android 4.3 devices with BluetoothLE can see iBeacons but not act as iBeacons, because Android 4.3 does not support peripheral mode. Samsung Android devices contain a separate proprietary SDK but it also does not allow devices to act as iBeacons. See: Make Samsung Android device advertise as an iBeacon) iOS devices, however, can act as iBeacons.

Normally, iBeacon technologies are not intended for phones to see other phones. But you could do what you suggest on iOS by making a custom app that makes phones act as an iBeacon and look for other iBeacons around them. This would allow anybody with the app to see others with the same app nearby. All phones would need Bluetooth turned on.

To answer your second question, yes, a mobile device, both Android or iOS, must have an app installed to take advantage of iBeacons. Neither operating system currently does anything when it sees an iBeacon unless an app is installed that is specifically programmed to do something. So customers who arrive in a store must have an app already installed or they cannot interact with iBeacons.

like image 87
davidgyoung Avatar answered Sep 21 '22 05:09

davidgyoung