My android app needs to find a beacon in background. To do so I'm using the google nearby messaging api with beaconId.
To have a scan in foreground I'm subscribing the messages client in a foreground service, but my app after some times stops seeing the beacon.
Am I missing something?