Monitoring not working in android N

Hi all

i’m currently working on a with beacons for Android the monitoring not working in Android N even i write the Enter/Exit/and Monitoring Code in subclass as per we note in Example (Notification Demo), i have same thing in my own app but still i’m getting same error, when app is in Background it doesn’t work but when i open it, it start working,
need help urgently.
thanks