Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background scanning using Proximity Trigger (Android 8.0+) is not working #65

Closed
1 task done
RasoolMohamed27 opened this issue Jul 10, 2018 · 4 comments
Closed
1 task done

Comments

@RasoolMohamed27
Copy link

Prerequisites

  • 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: 0.6.2

Android devices affected: Nokia TA-1043

Android OS version affected: 8.1.0

Beacon hardware version: F3.3

Description

Background scanning using Proximity Trigger (Android 8.0+) is not working. Please find my below code.

mNotif = new NotificationCompat.Builder(this, "content_channel")
.setSmallIcon(android.R.drawable.ic_dialog_info)
.setContentTitle("Beacon scan")
.setContentText("Scan is running...")
.setContentIntent(PendingIntent.getActivity(this, 0,
new Intent(this, MainActivity.class), PendingIntent.FLAG_UPDATE_CURRENT))
.setPriority(NotificationCompat.PRIORITY_HIGH)
.build();

    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
        new ProximityTriggerBuilder(this)
                .displayNotificationWhenInProximity(mNotif)
                .withNotificationId(111)
                .build()
                .start();
    }

(Optional) Steps to reproduce:

  1. Enable Bluetooth and Location
  2. Open the app and then force close it
  3. Move close to the beacons

Expected behavior: Notification should be shown

Actual behavior: No Notification shown

@zack-hable
Copy link

I've already reported this issue here: #60

@pawelDylag
Copy link
Contributor

pawelDylag commented Jul 18, 2018

Hey guys - we're not working on ProximityTrigger for now - got lots of other priority stuff to do. I'll add this to my backlog, and will take a look at this for sure!

My guess is that there was any additional restriction put on the background functionalities in Android 8.1.0 . ProximityTrigger was tested on 8.0.0, and we need to re test it on 8.1.0. Will definitely let you know about the progress when I hit this task :)

We will track this issue in #60 :)

Cheers,
Paweł

@rasoolmohamed
Copy link

Hi pawelDylag,
Please provide update on above issue.

@AndroidDeveloperMCT
Copy link

Any update on this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants