Android-Proximity-SDK icon indicating copy to clipboard operation
Android-Proximity-SDK copied to clipboard

App gets killed even if background monitoring enabled

Open rjain90 opened this issue 6 years ago • 1 comments

Prerequisites

  • [X ] Put an X between the brackets on this line if you have done all of the following:
    • My beacons have Estimote Monitoring enabled (Check it in the Estimote Cloud, or via app)
    • My Android device/devices supports BLE and has Android OS version >= 5.0.0
    • My Android device/devices have bluetooth enabled
    • My app has Location Permissions granted

Basic information

Estimote SDK version: proximity-sdk:1.0.3

Android devices affected: OnePlus 3T

Android OS version affected: Android Oreo 8.0.0

Beacon hardware version: mint

Description

I have built my proximity observer like below: proximityObserver = ProximityObserverBuilder(context, cloudCredentials) .withBalancedPowerMode() .withEstimoteSecureMonitoringDisabled() .withTelemetryReportingDisabled() .withScannerInForegroundService(context.getBackgroundScanNotification()) .build() I expect my app to keep looking for beacons forever but instead it gets killed after about 15 minutes.

** Steps to reproduce:**

  1. Open the app, beacon ranging started with .withScannerInForegroundService(notification)
  2. Press home button
  3. After about 10-15 minutes the app is killed by the OS

Expected behavior: When using a foreground service, the app should not be killed Actual behavior: The app is killed after about 15 minutes

rjain90 avatar Feb 19 '19 12:02 rjain90

+1 Same here, any updates?

SDK version 1.0.5

Shailevy avatar Jun 26 '20 20:06 Shailevy