Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't receive notifications when app is closed or in background

See original GitHub issue

manifest file:

<uses-permission android:name="android.permission.WAKE_LOCK" />
        android:protectionLevel="signature" />
<uses-permission android:name="" />
<uses-permission android:name="" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

in the application: <meta-data android:name="" android:value="@integer/google_play_services_version" />

            android:permission="" >
            <action android:name="" />
            <category android:name="" />

    <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" />
    <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver">
            <action android:name="android.intent.action.BOOT_COMPLETED" />

    <service android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService"/>

            android:exported="false" >
            <action android:name="" />


include ':app' ... include ':react-native-push-notification' project(':react-native-push-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-push-notification/android')


dependencies {
    classpath ''



app/build.gradle ` dependencies { compile fileTree(dir: “libs”, include: [“*.jar”]) compile “” compile ‘’ … compile project(‘:react-native-push-notification’)

compile ('')


import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;

@Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), ... new ReactNativePushNotificationPackage() ); } };

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:34 (4 by maintainers)

github_iconTop GitHub Comments

npomfretcommented, Oct 6, 2016

My app receives GCM push notifications when it is in the background, tested on Android 4.1 and 5.1.

It doesn’t receive push notifications when its not running though. Although, I’m not sure that feature is supported yet.

ddobby94commented, Oct 3, 2016


Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Notifications Not Showing Up? 10 Fixes You Can Try
Not seeing notifications show up on your Android phone? Try these fixes to get Android notifications working again.
Read more >
How to get Windows Mail notifications when the app is closed?
I would like to receive notifications while the app is closed, or at least find a way to minimize the app to the...
Read more >
Push Notifications when app is closed - android - Stack Overflow
Yes, it is possible 'to receive notifications from google cloud message when the application is fully closed'. Infact, A broadcast receiver ...
Read more >
Why can't my phone receive App push, incoming call, device ...
Check Notifications Settings, whether Do-Not-Disturb Schedule was on. If your mobile phone and device allow the app to push messages but do not ......
Read more >
How to Fix Notifications Not Showing up on Android - Lifewire
Make sure you haven't turned off app notifications. If you aren't receiving notifications from a specific app, the most likely culprit is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found