-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
error: no suitable method found for success(boolean) #83
Comments
Sorry this was caused by my fix to #81. Will push out a patch release to fix it. |
Fixed in v6.0.6 |
Hello. |
@roman8817 Please use (build and run) the example project as a working reference. |
Hi @dpa99c
How can i resolve this issue?
\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePlugin.java:406: error: no suitable method found for success(boolean) callbackContext.success(areNotificationsEnabled); ^ method CallbackContext.success(JSONObject) is not applicable (argument mismatch; boolean cannot be converted to JSONObject) method CallbackContext.success(String) is not applicable (argument mismatch; boolean cannot be converted to String) method CallbackContext.success(JSONArray) is not applicable (argument mismatch; boolean cannot be converted to JSONArray) method CallbackContext.success(byte[]) is not applicable (argument mismatch; boolean cannot be converted to byte[]) method CallbackContext.success(int) is not applicable (argument mismatch; boolean cannot be converted to int) Note: Some input files use or override a deprecated API.
Some Background about the error.
I Migrated from cordova-plugin-firebase, as mentioned in the readme guide
I followed this guide
rm -Rf platforms/android
cordova plugin rm cordova-plugin-firebase
rm -Rf plugins/ node_modules/
npm install
cordova plugin add cordova-plugin-firebasex
cordova platform add android
The text was updated successfully, but these errors were encountered: