# Beacon Android Killed App

**URL:** <https://forum.ionicframework.com/t/beacon-android-killed-app/51850>\
**Category:** ionic-v1\
**Created:** [May 12, 2016, 9:53am UTC](https://forum.ionicframework.com/t/beacon-android-killed-app/51850 "2016-05-12T09:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fovaka](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fovaka](https://forum.ionicframework.com/u/fovaka)\
**Post date:** [May 12, 2016, 9:53am UTC](https://forum.ionicframework.com/t/beacon-android-killed-app/51850/1 "2016-05-12T09:53:52Z")

</div>

Hello to everyone,

i have so far successfully created my app so as to receive push notifications when detect beacons in range.

I used this [https://github.com/petermetz/cordova-plugin-ibeacon](https://github.com/petermetz/cordova-plugin-ibeacon)

In iOS i can detect beacon in foreground, in background and when the app is killed. Whereas in Android i have made it only when in foreground or in background.

My problem is that i want in Android devices to detect beacons also when the app is killed.

Is there anything i can do? I am trying to build a background service using

> **[Red-Folder/Cordova-Plugin-BackgroundService](https://github.com/Red-Folder/Cordova-Plugin-BackgroundService/tree/master/3.1.0)**
>
> Cordova-Plugin-BackgroundService - BackroundService plugin for use with Cordova (PhoneGap)

but with no luck till now.

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![Medchorfi](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Medchorfi](https://forum.ionicframework.com/u/Medchorfi)\
**Post date:** [June 11, 2016, 11:46am UTC](https://forum.ionicframework.com/t/beacon-android-killed-app/51850/2 "2016-06-11T11:46:26Z")

</div>

Hello @fovaka,

How you can detect beacon when the app is killed in iOS ?

Tks,

---

<div class="post-metadata">

**Author:** ![totoni](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@totoni](https://forum.ionicframework.com/u/totoni)\
**Post date:** [July 29, 2016, 3:58pm UTC](https://forum.ionicframework.com/t/beacon-android-killed-app/51850/3 "2016-07-29T15:58:00Z")

</div>

Hi fovaka.  
Do you mind share your solution? I am struggling with what your have sucessfully created 🙂

---

<div class="post-metadata">

**Author:** ![saty932](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saty932/32/114572_2.png) [@saty932](https://forum.ionicframework.com/u/saty932)\
**Post date:** [September 27, 2017, 9:23am UTC](https://forum.ionicframework.com/t/beacon-android-killed-app/51850/4 "2017-09-27T09:23:17Z")

</div>

Too late but it helps for some one.  
We are able to get the notifications in android even when the app is killed.We have published our code to github repo.

> **[saty932/cordova-plugin-beacon-monitoring-in-background-with-notifications-androi...](https://github.com/saty932/cordova-plugin-beacon-monitoring-in-background-with-notifications-android)**
>
> cordova-plugin-beacon-monitoring-in-background-with-notifications-android - This is a repository for beacon monitoring in android (ionic) app when the app is closed.We can get the notifications fro...

with in this repo we mentioned everything how we achieved this functionality.
