Closed mapaiva closed 7 years ago
When the module requests USB_PERMISSION the application that is using the module freezes.
Improve this:
if (connection == null) { PendingIntent mPermissionIntent = PendingIntent.getBroadcast(reactContext, 0, new Intent("com.android.example.USB_PERMISSION"), 0); manager.requestPermission(driver.getDevice(), mPermissionIntent); }
Solved by https://github.com/mapaiva/react-native-usbserial/commit/80bb32baf8a2685ec94c5e95224d3566e76fc249
When the module requests USB_PERMISSION the application that is using the module freezes.
Improve this: