title: Cordova ibeacon; Send local notification after the app got killed, but does not work on android
body: <p>I am using <a href="https://github.com/petermetz/cordova-plugin-ibeacon">Cordova / Phonegap iBeacon plugin</a> with <a href="http://ionicframework.com/">ionicframework</a> at my cordova project. I am tryin to send a local notification both on android and ios with <a href="https://github.com/katzer/cordova-plugin-local-notifications/">cordova local notification plugin</a> while entering monitored region , when the app is killed.</p>
  
  <p>Here is my code : </p>
  
  <pre><code>document.addEventListener("deviceready", onDeviceReady, false);
  
      function didDetermineStateForRegion(pluginResult) {
      }
  
      function didStartMonitoringForRegion (pluginResult) {
      }
      function didExitRegion(pluginResult) {
          $cordovaLocalNotification.add({
          id: 30244234234,
          title: "Good By!",
          text: "Hope to see you again."
              }).then(function () {
              });
      }
  
      function didEnterRegion (pluginResult) {
          $cordovaLocalNotification.add({
          title: "Welcome",
          text: "Tap to launch app"
              }).then(function () {
  
              });
  
      };
      function didRangeBeaconsInRegion (pluginResult) {
  
      }
  
      function onDeviceReady() {
          // Now safe to use device APIs
          function createBeacon(uuid,nofiyState) {
  
              var uuid = uuid; // mandatory
              var identifier = 'estimote'; // mandatory
  
              // throws an error if the parameters are not valid
              var beaconRegion = new cordova.plugins.locationManager.BeaconRegion(identifier, uuid);
              beaconRegion.notifyEntryStateOnDisplay = true;
              return beaconRegion;
          }
          var delegate = new cordova.plugins.locationManager.Delegate();
          delegate.didDetermineStateForRegion = didDetermineStateForRegion;
  
          delegate.didStartMonitoringForRegion = didStartMonitoringForRegion;
  
          delegate.didRangeBeaconsInRegion = didRangeBeaconsInRegion;
          delegate.didEnterRegion = didEnterRegion;
          delegate.didExitRegion = didExitRegion;
  
          var beaconRegion = createBeacon('02681445-8D1B-4F58-99D4-B25F4B129A58',true);
          // var beaconRegionBlue = createBeacon('02681445-8D1B-4F58-99D4-B25F4B129A58',1,,true);
          cordova.plugins.locationManager.setDelegate(delegate);
  
          // required in iOS 8+
          //cordova.plugins.locationManager.requestWhenInUseAuthorization();
          cordova.plugins.locationManager.requestAlwaysAuthorization();
          cordova.plugins.locationManager.startMonitoringForRegion(beaconRegion)
          .fail(console.error)
          .done();
  
      }
  </code></pre>
  
  <p>cordova plugins :</p>
  
  <pre><code>com.unarin.cordova.beacon 3.3.0 "Proximity Beacon Plugin"
  de.appplant.cordova.plugin.local-notification 0.8.1 "LocalNotification"
  nl.x-services.plugins.socialsharing 4.3.16 "SocialSharing"
  org.apache.cordova.console 0.2.13 "Console"
  org.apache.cordova.device 0.3.0 "Device"
  </code></pre>
  
  <p>cordova version : 4.3.0</p>
  
  <p>this works fine for ios even if the app is killed but on android notifications cames only if app in the background. When i kill the app from task manager on android i never seen any local notification.</p>
  
  <p>Is it possible to receive notification on android even if app is killed ? </p>
  
  <p>thanks for help.</p>