Closed dev4bitcoin closed 2 years ago
Downgrading to 4.2.4 worked for me.
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 RN@0.66 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. Using:
@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. PS.: I am not a java developer in any shape form or fashion, it is entirely possible that I did something wrong.
@luizppa have you solved this issue?
@luizppa have you solved this issue?
Yes, you can check out the result in this fork. It also has some other modifications, so I wouldn't recommend using it without checking the diff to the original repository.
@luizppa have you solved this issue?
Yes, you can check out the result in this fork. It also has some other modifications, so I wouldn't recommend using it without checking the diff to the original repository.
@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