protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            _logService = new LogService();
            _receiver   = new AutoStart();

            base.OnCreate(savedInstanceState);

            CrossCurrentActivity.Current.Activity = this;

            Forms.Init(this, savedInstanceState);
            LoadApplication(new App());

            RequestPermissions(new[] { Manifest.Permission.AccessFineLocation, Manifest.Permission.BluetoothPrivileged },
                               0);


            GetMcaNotificationService();
            _mcaNotificationService.SendNotification("AndroidBeacon", "APP STARTED");

            _logService.WriteToLog(LogFilename, "APP STARTED");

            if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.O)
            {
                StartForegroundService(new Intent(this, typeof(AppService)));
            }

            else
            {
                StartService(new Intent(this, typeof(AppService)));
            }
        }
        private void ExitedRegion(object sender, MonitorEventArgs e)
        {
            Log.Debug("FLBEACON", "ExitedRegion");

            // even
            var message = new BeaconRangedEventArgs {
                Inside = false
            };

            OnBeaconRanged(message);

            Log.Debug("FLBEACON", "Stop Request Updates from Beacon");
            LocationManagerService.StopRequestLocationUpdates();

            notificationService.SendNotification("Beacon", "Exited Region");

            logService.WriteToLog(LOG_FILENAME, "ExitedRegion");
        }