Skip to content

Commit

Permalink
Merge pull request #1207 from lucaswitch/master
Browse files Browse the repository at this point in the history
Update BleManager.java
  • Loading branch information
marcosinigaglia authored Apr 22, 2024
2 parents 5f6c5f9 + 793bd6f commit 8e600cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/it/innove/BleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public void start(ReadableMap options, Callback callback) {
if (Build.VERSION.SDK_INT >= UPSIDE_DOWN_CAKE){
// Google in 2023 decides that flag RECEIVER_NOT_EXPORTED or RECEIVER_EXPORTED should be explicit set SDK 34(UPSIDE_DOWN_CAKE) on registering receivers.
// Also the export flags are available on Android 8 and higher, should be used with caution so that don't break compability with that devices.
context.registerReceiver(mReceiver, filter, Context.RECEIVER_NOT_EXPORTED);
context.registerReceiver(mReceiver, intentFilter, Context.RECEIVER_NOT_EXPORTED);
context.registerReceiver(mReceiver, filter, Context.RECEIVER_EXPORTED);
context.registerReceiver(mReceiver, intentFilter, Context.RECEIVER_EXPORTED);
} else {
context.registerReceiver(mReceiver, filter);
context.registerReceiver(mReceiver, intentFilter);
Expand Down

0 comments on commit 8e600cb

Please sign in to comment.