Hello
When adding push notifications to the program, the program with unfortunately myapp has stopped Encountered
Can you look at the app's photos?
http://uupload.ir/files/z5ls_screenshot_1538479398.png
http://uupload.ir/files/862w_1.jpg
http://uupload.ir/files/7dab_2.jpg
http://uupload.ir/files/0lc7_3.jpg
http://uupload.ir/files/r7ns_4.jpg
Same Issue. App crashes on startup after installing [email protected]
Using [email protected].
Platform: Android
Thanks in advance.
Ps: no error logs or anything.
I had a similar issue,
https://github.com/linux08/react-native-map-push-notification/blob/master/android/build.gradle
Check my configuration there i believe that will solve the problem
Same with [email protected] and [email protected] on Android
UPDATE:
I was able to fix it with a reduced version of @linux08 solution:
android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// Fixes [email protected]
ext {
googlePlayServicesVersion = "+"
}
buildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 23
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
}
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
I had the same issue with version 3.1.1
Fixed with
ext {
googlePlayServicesVersion = "+"
}
in android/build.gradle .
What if I don't use googlePlayService ? I need local notification only and I have the same issue only after installing the library. Android only. Ios works fine
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
Most helpful comment
Same with
[email protected]and[email protected]on AndroidUPDATE:
I was able to fix it with a reduced version of @linux08 solution:
android/build.gradle