Closed Jvictor97 closed 5 years ago
Hello, this issue with me to, another minutes i execute and work, but another time dont work.
resolved?
same here.
"react": "16.3.1",
"react-native": "0.55.2",
"react-native-onesignal": "^3.2.7"
I just back to react-native-onesignal@3.1.4 and added fcm parameters in android/app/build.gradle
android {
...
defaultConfig {
...
manifestPlaceholders = [onesignal_app_id: "app-id",
onesignal_google_project_number: "sender"]
}
Can you try updating to the latest 0.12.1 version of the OneSignal-Gradle-Plugin? An update was just released this week which might fix this issue. https://documentation.onesignal.com/docs/react-native-sdk-setup#section-adding-the-gradle-plugin
Also double check you have setup this plugin in the correct build.gradle
in the correct spot to make sure it is running.
Please attach a project reproducing the issue if this does not help.
I double checked the build.gradle
as requested and everything seems fine. Also tried updating the gradle plugin but the error is still happening. I've created a repo with a copy of my project just remember to add you OneSignal AppID on App.js before testing.
Here it is: https://github.com/Jvictor97/OneSignalTesting
Same issue here.
I created this project and everything was working last month, but now isn't work anymore.
Error message: Could not find any matches for com.google.firebase:firebase-iid-license:[10.2.1,12.1.0[ as no versions of com.google.firebase:firebase-iid-license are available.
I can solve it by adding maven url to android/build.gradle repositories:
maven {
url 'https://maven.google.com'
}
The full code:
allprojects {
repositories {
maven {
url 'https://maven.google.com'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Now it is building normally, but don't registering user to Onesignal's App.
I tried @iLevye 's approach and it worked. But I see it as a temporary solution. Something should be done to version 3.2.7 so it can work properly.
@Jvictor97 @iLevye maven { url 'https://maven.google.com' }
or google()
should be added automatically by react native. It is needed to get any version of Google Play services or Firebase released in the last 9 months. It is also already in our example project.
https://github.com/geektimecoil/react-native-onesignal/blob/3.2.7/examples/RNOneSignal/android/build.gradle#L19
Closing due to no response, assuming jkasten's response fixed your issue.
Description:
I'm getting the following when trying to run my project on Android:
Environment
Steps to Reproduce Issue:
Obs.: this project was a test I made using OneSignal and it was working until last week, so I guess the problem may have to do with some third party update