{"action":"created","issue":{"url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/15","labels_url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/15/comments","events_url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/15/events","html_url":"https://github.com/kontaktio/Android-SDK/issues/15","id":88923370,"number":15,"title":"Far beacon detecting first before immediate beacon","user":{"login":"subbu1234","id":12848738,"avatar_url":"https://avatars.githubusercontent.com/u/12848738?v=3","gravatar_id":"","url":"https://api.github.com/users/subbu1234","html_url":"https://github.com/subbu1234","followers_url":"https://api.github.com/users/subbu1234/followers","following_url":"https://api.github.com/users/subbu1234/following{/other_user}","gists_url":"https://api.github.com/users/subbu1234/gists{/gist_id}","starred_url":"https://api.github.com/users/subbu1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subbu1234/subscriptions","organizations_url":"https://api.github.com/users/subbu1234/orgs","repos_url":"https://api.github.com/users/subbu1234/repos","events_url":"https://api.github.com/users/subbu1234/events{/privacy}","received_events_url":"https://api.github.com/users/subbu1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T06:11:55Z","updated_at":"2015-06-22T23:32:31Z","closed_at":null,"body":"We are developing application using kontakt sdk for detecting kontakt beacons. We placed two beacons one in immediate proximity (1m) and another in far proximity (10m). We observed that far beacon detecting first before immediate beacon. we configured with the following code\r\n\r\nbeaconManager = BeaconManager.newInstance(this.getApplicationContext());\r\n                beaconManager.setMonitorPeriod(MonitorPeriod.MINIMAL);\r\n                beaconManager.setForceScanConfiguration(ForceScanConfiguration.DEFAULT);\r\n                beaconManager.setDistanceSort(BeaconDevice.DistanceSort.ASC);\r\n                beaconManager.registerMonitoringListener(this.regionManager);\r\n\r\nFar beacon detecting first but immediate beacon detecting after some time ( after 2-10 seconds).\r\nWe need solution that we always require to detect immediate beacon first."},"comment":{"url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/comments/114302160","html_url":"https://github.com/kontaktio/Android-SDK/issues/15#issuecomment-114302160","issue_url":"https://api.github.com/repos/kontaktio/Android-SDK/issues/15","id":114302160,"user":{"login":"dawidgdanski","id":1949918,"avatar_url":"https://avatars.githubusercontent.com/u/1949918?v=3","gravatar_id":"","url":"https://api.github.com/users/dawidgdanski","html_url":"https://github.com/dawidgdanski","followers_url":"https://api.github.com/users/dawidgdanski/followers","following_url":"https://api.github.com/users/dawidgdanski/following{/other_user}","gists_url":"https://api.github.com/users/dawidgdanski/gists{/gist_id}","starred_url":"https://api.github.com/users/dawidgdanski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawidgdanski/subscriptions","organizations_url":"https://api.github.com/users/dawidgdanski/orgs","repos_url":"https://api.github.com/users/dawidgdanski/repos","events_url":"https://api.github.com/users/dawidgdanski/events{/privacy}","received_events_url":"https://api.github.com/users/dawidgdanski/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T23:32:31Z","updated_at":"2015-06-22T23:32:31Z","body":"1. We observed that far beacon detecting first before immediate beacon.\r\nDetection order does not depend on the SDK. It is up to the Android device to establish the notification order.\r\n\r\nIn brief:\r\n\r\nbeaconManager.setMonitorPeriod(MonitorPeriod.MINIMAL); [MonitorPeriod description](http://kontaktio.github.io/Android-SDK/Javadoc/com/kontakt/sdk/android/configuration/MonitorPeriod.html)\r\n\r\nbeaconManager.setForceScanConfiguration(ForceScanConfiguration.DEFAULT); [ForceScanConfiguration description] (http://kontaktio.github.io/Android-SDK/Javadoc/com/kontakt/sdk/android/configuration/ForceScanConfiguration.html)\r\n\r\nbeaconManager.setDistanceSort(BeaconDevice.DistanceSort.ASC);[DistanceSort description](http://kontaktio.github.io/Android-SDK/Javadoc/com/kontakt/sdk/android/device/BeaconDevice.DistanceSort.html)\r\n\r\n"}}