vitorpamplona / react-native-ble-advertiser

Bluetooth Advertiser/Scanner for React Native.
60 stars 38 forks source link

Advertising in android app crash #10

Closed hern12 closed 4 years ago

hern12 commented 4 years ago

When I use Advertise function in android app is stop working on android but on iPhone 11 and 10 work perfect thanks

vitorpamplona commented 4 years ago

hum... I just cleared my env to test this and it seems to be working fine.

Can you post the error message?

It could be the:

      eventEmitter.addListener('onDeviceFound', (event) => {
       console.log('onDeviceFound', event);

I realized that console.log at every second could be quite heavy for some phones.

aongwachi1 commented 4 years ago

You suggest to remove console.log in event listener, right? @vitorpamplona

hern12 commented 4 years ago

It seems native code error. I forget to capture the error image. I will post the image later. Can I check Bluetooth version before init Adv. Thank you in advance