-
Notifications
You must be signed in to change notification settings - Fork 767
Error building on Android. #867
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
Comments
Downgrading to 4.2.4 worked for me. |
I downgraded to 4.3.0 and able to build successfully. Now I can see the notification received in console but not in the notification center. Is it working fine on Android? |
starting [email protected] they changed the function name. I'll add them both |
Is that function name change for notification not recieving in Notification Center but able to see in console? |
It did not solved the problem for me in a forked version of this repository (up to date with master) and RN 0.64.2. @Override
public synchronized boolean isReactInitialized() {
if (mReactContext == null) {
return false;
}
try {
return mReactContext.hasActiveCatalystInstance();
} catch (Exception e) {
return mReactContext.hasActiveReactInstance();
}
} still gave me the same error, I had to change it back to: @Override
public synchronized boolean isReactInitialized() {
if (mReactContext == null) {
return false;
}
return mReactContext.hasActiveCatalystInstance();
} on my fork. |
@luizppa have you solved this issue? |
@luizppa yep, I also used it according to deprecation. Seems like need to upgrade react native version for support that method. Thank you for fast response! |
I installed latest version of this library and getting build issue on Android. It is working fine on iOS.
Version:
"react-native": "0.64.3",
"react-native-notifications": "^4.3.1",
Freshly installed yesterday and getting this issue.
Here is the error. Anyone have any idea?
Execution failed for task ':react-native-notifications:compileReactNative60DebugJavaWithJavac'. node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java:50: error: cannot find symbol return mReactContext.hasActiveReactInstance(); ^ symbol: method hasActiveReactInstance() location: variable mReactContext of type ReactContext
The text was updated successfully, but these errors were encountered: