---
title: "Comment by Matteo Mazzarolo on \"Building custom Android modules for React Native\" | Hashnode"
description: "Hey! Nice introduction tutorial! Do you have any suggestion on the implementation/bridging of an Android service in React-Native? I&#39;m asking because I&#39;m"
url: "https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/577f48f2a4b6f17ba3a6e177"
---

[Discussion](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff)

Comment [Building custom Android modules for React Native](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff)

[Matteo Mazzarolo](https://hashnode.com/@mmazzarolo)

[Jul 8, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/577f48f2a4b6f17ba3a6e177)

Hey! Nice introduction tutorial! Do you have any suggestion on the implementation/bridging of an Android service in React-Native?  
I'm asking because I'm considering all the available options for making [react-native-beacons-android](https://github.com/mmazzarolo/react-native-beacons-android) works even when the app is killed.  
Thanks ;)

[Sriraman](https://hashnode.com/@sriraman)

[Jul 8, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/577f48f2a4b6f17ba3a6e177#reply-577f4f4016a33191db042fc5)

Background service would be killed by Android on low memory. If you run the service in the foreground, then the service will not be killed. Running the service in the foreground will generate a persistent notification in the notification drawer.

Check [developer.android.com/guide/components/services.h…](https://developer.android.com/guide/components/services.html#Foreground) for more information

[Matteo Mazzarolo](https://hashnode.com/@mmazzarolo)

[Jul 8, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/577f48f2a4b6f17ba3a6e177#reply-577f5156a4b6f17ba3a6e183)

Yep, I know, but what about making the service comunicate with React-Native?  
Do you have any experience/example on this?  
And thanks for the fast answer man!

[Sriraman](https://hashnode.com/@sriraman)

[Jul 8, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/577f48f2a4b6f17ba3a6e177#reply-577f5b6ea4b6f17ba3a6e18f)

React Native won't be alive in background. Obviously, the Event listener which we created in the React Native layer will also be destroyed. Communication might not be possible. Some people said that it is possible to start the Javascript core from the background. But, I never tried it. I'll let you know if I find some workaround.
