question-mark
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.

react-native-push-notification dependency stops application

See original GitHub issue

Hi, I’m trying to create a react-native app which needs to display some notifications. All worked fine until I’ve added react-native-push-notification dependency. Now as you can see in attached screenshot, application fails to start. image

Following are project dependecies:

dependencies {
    compile project(':react-native-push-notification')
    compile project(':react-native-video')
    compile project(':react-native-vector-icons')
    compile project(':react-native-permissions')
    compile project(':react-native-maps')
    compile project(':react-native-image-picker')
    compile project(':react-native-geocoder')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
    compile ('com.google.android.gms:play-services-gcm:9.+') {
        force = true;
    }
}

Can someone please help me to solve this?

Issue Analytics

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

github_iconTop GitHub Comments

16reactions
EmpiteDineshcommented, Nov 3, 2016

This is happening because of incompatible v7 and play service libs. (gcm:8.4.0)

My gradle build script was like this: compile "com.android.support:appcompat-v7:23.0.1" compile ('com.google.android.gms:play-services-gcm:8.4.0') { force = true; }

I changed this to following it worked.

compile "com.android.support:appcompat-v7:23.4.0" compile ('com.google.android.gms:play-services-gcm:9.0.1') { force = true; }

@jeveloper thanks for the tip buddy 👍

2reactions
jevelopercommented, Dec 9, 2016

Folks, i think we can close this issue plenty of good tips here 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-push-notification - npm
Start using react-native-push-notification in your project by running `npm i ... In your android/app/src/main/AndroidManifest.xml.
Read more >
I have a problem with installing react-native-push-notification
I found the answer Actually in package.json dependencies These two dependencies were missing even after installing
Read more >
How to create and send push notifications in React Native
Push notifications are messages or alerts sent by the makers of an application the user has installed. There are two main types of...
Read more >
Implementing React Native Push Notifications in Android Apps
To follow the steps below, make sure you have an active Firebase project. From the main Dashboard page, go to Project Settings.
Read more >
React Native Push Notification with Firebase | by Indhumathi
React Native Push Notification with Firebase ... Now we'll add some dependencies to our app with the latest version of the package.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found