Estimote SDK - app is running but no events

Hi,
I've started playing with some Estomte iBeacons. I've done my programming in Visual Studio C#. The code is listed below.
It will compile and deploy to my Samsung Galaxy S5. I can also detect that the OnServiceReady and OnResume events are called. But - I don't get the BeaconEnteredRegion and BeaconExitedRegion triggered. Can't figure out why?
Any suggestions?

using Android.App;
using Android.Widget;
using Android.OS;
using EstimoteSdk.Service;
using EstimoteSdk.Observation.Region.Beacon;
using EstimoteSdk.Common.Requirements;
using EstimoteTesting;

namespace EstimoteTesting
{
    [Activity(Label = "Test Estimote", MainLauncher = true)]
    public class MainActivity : Activity, BeaconManager.IServiceReadyCallback
    {
        static readonly string UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D";

        BeaconManager _beaconManager;
        BeaconRegion _region;

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Main);

            //Reference the controls
            Button getBeacons = FindViewById<Button>(Resource.Id.btnGetBeacons);
            EditText beaconList = FindViewById<EditText>(Resource.Id.lstBeacons);

            _beaconManager = new BeaconManager(Application.Context);
            _region = new BeaconRegion("The area", UUID);

            _beaconManager.SetBackgroundScanPeriod(6000, 0);

            _beaconManager.BeaconEnteredRegion += (sender, e) => 
            {
                beaconList.Append("Beacon has ENTERED the region !");
            };

            _beaconManager.BeaconExitedRegion += (sender, e) => 
            {
                beaconList.Append("Beacon has LEFT the region");
            };
        }

        protected override void OnResume()
        {
            base.OnResume();
            bool TheResult = SystemRequirementsChecker.CheckWithDefaultDialogs(this);
            _beaconManager.Connect(this);
        }

        public void OnServiceReady()
        {
            _beaconManager.StartMonitoring(_region);
        }

        protected override void OnDestroy()
        {
            _beaconManager.Disconnect();
            base.OnDestroy();
        }
    }
}
Sign In or Register to comment.