Skip to content
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

Closed
AmitKKhanchandani opened this issue Aug 12, 2019 · 4 comments
Closed

error: no suitable method found for success(boolean) #83

AmitKKhanchandani opened this issue Aug 12, 2019 · 4 comments

Comments

@AmitKKhanchandani
Copy link

AmitKKhanchandani commented Aug 12, 2019

Hi @dpa99c

image

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

@dpa99c
Copy link
Owner

dpa99c commented Aug 12, 2019

Sorry this was caused by my fix to #81. Will push out a patch release to fix it.

@dpa99c dpa99c closed this as completed in f3f223d Aug 12, 2019
@dpa99c
Copy link
Owner

dpa99c commented Aug 12, 2019

Fixed in v6.0.6

@driggers-paul
Copy link

Hello.
Now I am use Cordova-plugin-firebasex 6.0.6 in ionic 4 app. I tried to use that plugin for push notification. But it is not working. Any comment for me please?
I used [email protected]. And I used Cordova-plugins-googlemaps and Cordova-plugin-geolocation plugins using google services.
Please help me.

@dpa99c
Copy link
Owner

dpa99c commented Aug 15, 2019

@roman8817 Please use (build and run) the example project as a working reference.
Specifically for Ionic 4, see danielsogl/awesome-cordova-plugins#3106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants