上の任意のビーコンを示していないが、しかし、Android上で、ビーコン配列は、(それに何も現れあります私の隣に6つのビーコンがあり、それらはすべてiOSに表示されます)。ここで反応し、ネイティブ・ビーコン・マネージャーのiOS上で素敵な作品<p><a href="https://github.com/MacKentoch/react-native-beacons-manager" rel="nofollow noreferrer">https://github.com/MacKentoch/react-native-beacons-manager</a></p> を使用してAndroidの
は私がやっているものです:私のコンソールで
componentDidMount() {
// Start detecting all iBeacons in the nearby
Beacons.detectIBeacons();
Beacons.startRangingBeaconsInRegion('Estimotes', 'B9407F30-F5F8-466E-AFF9-25556B57FE6D').then((data)=>{
console.log(data);
}).catch((reason) => {
console.log(reason);
});
// Print a log of the detected iBeacons (1 per second)
DeviceEventEmitter.addListener('beaconsDidRange', (data) => {
console.log(data);
});
}
を、私はこれを取得:
{beacons: Array(0), uuid: "b9407f30-f5f8-466e-aff9-25556b57fe6d", identifier: "Estimotes"}
これは動作するはずですので、私はデフォルトとしてEstimotesのUUIDを残しました。テスト用にSamsung Galaxy S8 +を使用する。ここで間違ったコーディングをしていますか?私が紛失しているAndroidに追加の権限がありますか? Bluetoothとロケーションサービスがオンになっています。