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

Not work for ProximityZoneBuilder #118

Open
michaelleung-mif opened this issue Jun 24, 2024 · 1 comment
Open

Not work for ProximityZoneBuilder #118

michaelleung-mif opened this issue Jun 24, 2024 · 1 comment

Comments

@michaelleung-mif
Copy link

michaelleung-mif commented Jun 24, 2024

  • I tried Estimote SDK version 1.0.5, 1.0.7, 1.0.8

  • I granted all permission
    android.permission.BLUETOOTH_CONNECT,
    android.permission.BLUETOOTH_SCAN,
    android.permission.ACCESS_FINE_LOCATION

      val officeZone = ProximityZoneBuilder()
              .forTag("OfficeZone")
              .inFarRange()
              .onEnter {
                  Logcat.i(TAG, "OfficeZone onEnter major: ${it.attachments["major"]}, ${it.attachments["minor"]}")
                  listener?.success(BeaconLocation(it.attachments["major"], it.attachments["minor"]))
              }
              .onContextChange { pzc ->
                  pzc.last().also { pz ->
                      Logcat.i(TAG, "OfficeZone major: ${pz.attachments["major"]}, ${pz.attachments["minor"]}")
                      listener?.success(BeaconLocation(pz.attachments["major"], pz.attachments["minor"]))
                  }
              }.build()
    
      proximityObserverHandler = proximityObserver?.startObserving(officeZone)
    

but no response from onEnter / onContextChange function, and no received any error, but not work

@michaelleung-mif
Copy link
Author

we used the old version gradle-5.4.1 is work
after we upgrade to gradle-6.1.1 or above, it is not work

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

No branches or pull requests

1 participant