react-native-push-notification dependency stops application
See original GitHub issueHi, 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.
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:
- Created 7 years ago
- Reactions:1
- Comments:14 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 👍
Folks, i think we can close this issue plenty of good tips here 😉