         enabled = false;
 
         locationManager.stopBackgroundTracking();
-//        activityManager.stopDetection();
+        activityManager.stopDetection();
 
         let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK)
         commandDelegate!.sendPluginResult(pluginResult, callbackId:command.callbackId)

            let accuracy = bestLocation!.horizontalAccuracy;

            let msg = "Got Location Update:  { \(latitude) - \(longitude) }  Accuracy: \(accuracy)";
            log(msg);
            NotificationManager.manager.notify(msg);

            locationCommandDelegate?.runInBackground({



        if(enabled) {
            locationManager.startUpdating(false);
            activityManager.startDetection();
        }
    }

