Hello,
I’m using latest Proximity SDK (alpha 5) and I’m not able to hide the permanent notification on Android. I know this is a trick and it’s now impossible to hide in latest Android release (8.0), but before that, you could hide it.
I’ve tried:
Notification notification = new Notification.Builder(context)
.setContentTitle("Title")
.setContentText("Monitoring Beacons …")
.setSmallIcon(R.drawable.ic_notification)
.build();
And old compat notification (with and without icon) with lowest priority, the only way IIRC to hide the notification.
NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
builder.setPriority(Notification.PRIORITY_MIN);
Notification notification = builder.setContentTitle("Title").setContentText("Monitoring Beacons…").build();
ProximityObserver.Handler observationHandler = proximityObserver.addProximityZones(zones)
.withBalancedPowerMode()
.withOnErrorAction(errorAction)
.startWithScannerInForegroundService(notification);
Is this normal at this stage? It could be very nice to be have this behavior.