Skip to content

No broadcastPermission for the Broadcast receiver in class DevSupportManagerBase #31870

Description

@erich04

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

No permission for broadcast receiver

React Native version:

Run react-native info in your terminal and copy the results here.

image

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

privatevoidreload() {
UiThreadUtil.assertOnUiThread();
// reload settings, show/hide debug overlay if required & start/stop shake detectorif (mIsDevSupportEnabled) {
// update visibility of FPS debug overlay depending on the settingsif (mDebugOverlayController != null) {
mDebugOverlayController.setFpsDebugViewVisible(mDevSettings.isFpsDebugEnabled());
}
// start shake gesture detectorif (!mIsShakeDetectorStarted) {
mShakeDetector.start(
(SensorManager) mApplicationContext.getSystemService(Context.SENSOR_SERVICE));
mIsShakeDetectorStarted = true;
}
// register reload app broadcast receiverif (!mIsReceiverRegistered) {
IntentFilterfilter = newIntentFilter();
filter.addAction(getReloadAppAction(mApplicationContext));
mApplicationContext.registerReceiver(mReloadAppBroadcastReceiver, filter); // No broadcastPermissionmIsReceiverRegistered = true;
}
... }

Expected Results

Describe what you expected to happen.

Need to vertify the permission for the intentfilter before handling data in the method onReceive

Snack, code example, screenshot, or link to a repository:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: AnsweredWhen the issue is resolved with a simple answer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions