New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with RN0.60 on any Android #868
Comments
Similarly, my app is also crashing on getting notification on android. I tested it on mi note 4 (android 7.0, RN 0.60.3, react-native-onesignal 3.3.3). |
@SAHITYASAI Could you show |
same error in react-native 0.60.5 , using react-native-onesignal@3.4.1 |
Can you make sure you have added the Missing this or adding it to the wrong |
The beginning of my
|
btw, I used before only
for react-native 0.59 & react-native-onesignal: 3.2.12 |
I added everything as described in the installation guide. But the line apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' is causing my app build to fail with this error
so that i commented that line as i could not find any solution on google. |
Yes added and the same error happens |
the way i see it! you are doing it wrong! its not all for the app/build.gradle file the apply plugin goes only there and rest of the class path , maven url and gradle plugin repo url goes in the project build.gradle |
@indapublic i just solved it ! i had the same bug! thankyou for posting this.! if you are still looking i am open to help reach me out at! |
Hello, @SAHITYASAI take a look here |
Thanks, Solved!! Inside de Project Folder "app/build.gradle" added this in top of file. buildscript { apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' apply plugin: "com.android.application" import com.android.build.OutputFile it Works! |
Great to hear! |
Show me your |
buildscript { apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' apply plugin: "com.android.application" import com.android.build.OutputFile /**
project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" /**
/**
/**
/**
android {
} dependencies {
} // Run this once to be able to run the application with BUCK apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
Thanks, @lucasferreiraestevam. Btw, you can format this code as source for better reading. |
Work for me after adding all libraries again for fresh project. Thank to all |
My issue is not fixed yet. i'm still getting the same runtime error. Can someone help me please. |
@SAHITYASAI show your |
android/build.gradle :-
android/app/build.gradle :-
|
@SAHITYASAI According to documentation you should move this code
to |
And reformat your code please |
same issue here error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. FAILURE: Build failed with an exception.
BUILD FAILED in 3s
|
I have it working with latest react-native-onesignal package! and RN 0.60.5 here is my Here is mine project/app/build.gradle file STEPS TOOK TO USE IT are
then for ios for andorid simply
|
@waqaramjad You issue is related to code signing
|
@indapublic so what's the solution for that ? |
@waqaramjad Show your |
@indapublic here is android/app/build.gradle buildscript {
} allprojects {
} |
@waqaramjad What RN version you have? |
"0.60.5" |
Did you update existing app or create new one? |
i just clone existing app example which is in one signal repo and just start it |
@waqaramjad You should say this first :) |
First: you printed |
Second: you should generate debug and release keystores regarding to this manual, for example |
btw: I saw that you using Windows, so probably you should use some stuff for keytool launching, I don't have experience with Windows. |
but why i need keystore because i don't want signed apk , i only want to test it |
while here is the code for `apply plugin: "com.android.application" import com.android.build.OutputFile /**
project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" /**
/**
/**
/**
android {
} dependencies {
} // Run this once to be able to run the application with BUCK apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
But you want install it for your device, isn't it? |
@indapublic thank you, my app is building successfully now. But i need to send notification to only those users who are inactive for 15 continuous days only programatically without using the onesignal notification dashboard. Can anyone help me please. |
I think you should create new issue for this, isn't it? |
@SAHITYASAI , |
Description:
(your description here)
Environment
On Android app start my app is crashing without any messages or windows.
adb logcat
:Cannot reproduce it on fresh app so perhaps it's related to any libraries. Found some issues with "com/google/android/gms/common/internal/zzbq" but cannot find any useful.
Tell me where to start?
The text was updated successfully, but these errors were encountered: