Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better permission request handler #1

Closed
mapaiva opened this issue Sep 27, 2016 · 1 comment
Closed

Better permission request handler #1

mapaiva opened this issue Sep 27, 2016 · 1 comment

Comments

@mapaiva
Copy link
Owner

mapaiva commented Sep 27, 2016

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);
        }
@mapaiva
Copy link
Owner Author

mapaiva commented Mar 1, 2017

Solved by 80bb32b

@mapaiva mapaiva closed this as completed Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant