diff --git a/android/common/src/main/java/com/marianhello/bgloc/BackgroundGeolocationFacade.java b/android/common/src/main/java/com/marianhello/bgloc/BackgroundGeolocationFacade.java index 320f834e..87f332cb 100644 --- a/android/common/src/main/java/com/marianhello/bgloc/BackgroundGeolocationFacade.java +++ b/android/common/src/main/java/com/marianhello/bgloc/BackgroundGeolocationFacade.java @@ -56,7 +56,6 @@ public class BackgroundGeolocationFacade { public static final String[] PERMISSIONS = { Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.POST_NOTIFICATIONS, }; private boolean mServiceBroadcastReceiverRegistered = false; @@ -235,6 +234,13 @@ public void onPermissionDenied(DeniedPermissions deniedPermissions) { } } }); + permissionManager.checkPermissions(Arrays.asList(Manifest.permission.POST_NOTIFICATIONS), new PermissionManager.PermissionRequestListener() { + @Override + public void onPermissionGranted() {} // noop + + @Override + public void onPermissionDenied(DeniedPermissions deniedPermissions) {} // noop + }); } public void stop() {