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

Ionic says plugin not installed when it is installed #934

Closed
jkrysakowski opened this issue Sep 12, 2019 · 18 comments
Closed

Ionic says plugin not installed when it is installed #934

jkrysakowski opened this issue Sep 12, 2019 · 18 comments

Comments

@jkrysakowski
Copy link

jkrysakowski commented Sep 12, 2019

Hi,

I try to use the plugin in Ionic 5 but I'm getting warnings:

[ng] [console.warn]: "Native: tried calling InAppPurchase2.order, but the InAppPurchase2 plugin is not installed."
[ng] [console.warn]: "Install the InAppPurchase2 plugin: 'ionic cordova plugin add cc.fovea.cordova.purchase'"

Of course I installed the plugin.

$ cordova plugin list
cc.fovea.cordova.purchase 8.1.1 "Purchase"

I added some debug logs to node_modules/@ionic-native/core/decorators/common.js before the lines that prints warnings and I see that plugin reference is "store" and plugin instance created by calling pluginInstance = getPlugin(pluginRef) returns null.

Any ideas how to fix it?

@jkrysakowski
Copy link
Author

Fixed by installing cordova-support-google-services plugin and putting google-services.json in platforms/android/app/src.

Here is an instruction how to get google-services.json: https://support.google.com/firebase/answer/7015592?hl=en

@jrdmcgr
Copy link

jrdmcgr commented Mar 17, 2021

I am also having this problem, but when I tried to install the cordova-support-google-services plugin it says:

> cordova plugin add cordova-support-google-services
Installing "cordova-support-google-services" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 9.0.0, failed version requirement: <9.0.0
Skipping 'cordova-support-google-services' for android
Adding cordova-support-google-services to package.json

Also, it seems that this repo is deprecated: https://github.com/chemerisuk/cordova-support-google-services.

Is there a way to fix this for android >9.0.0?

@ska-lbit
Copy link

Any updates? when I use cc.fovea.cordova.purchase plugin, all are working perfectly. But after using cordova-plugin-purchase, plugin not installed error is firing.

@mkeology
Copy link

Hello, under the same spell on Android with the cordova-plugin-purchase :13.1.5

Native: tried calling InAppPurchase2.when, but the InAppPurchase2 plugin is not installed.
Install the InAppPurchase2 plugin: 'ionic cordova plugin add cordova-plugin-purchase'
error: "plugin_not_installed"

@luarfaria
Copy link

Same here:

[capacitor] [info] Found 4 Cordova plugins for android:
[capacitor] cordova-plugin-facebook-connect@3.2.0
[capacitor] cordova-plugin-googleplus@8.5.2
[capacitor] cordova-plugin-purchase@13.1.5
[capacitor] cordova-plugin-vibration@3.1.1

Msg: Native: tried calling InAppPurchase2.register, but the InAppPurchase2 plugin is not installed.

@ska-lbit
Copy link

@luarfaria @mkeology I have resolved my issue by installing version 11 (cordova-plugin-purchase)

@luarfaria
Copy link

@ska-lbit It worked with version 11, thanks for the tip. Have a great new year!
@mkeology please take a look with:
"cordova-plugin-purchase": "^11.0.0",

@mkeology
Copy link

mkeology commented Dec 31, 2022

Thank you for your replies and suggestion ;-)

I confirm "cordova-plugin-purchase": "^11.0.0" works, and with the lastest in-app-purchase-2 lib "@awesome-cordova-plugins/in-app-purchase-2": "^6.2.0".
It just implies using the underlying com.android.billingclient:billing:4.0.0 for the moment.

@Dev-Demons
Copy link

"cordova-plugin-purchase": "^11.0.0" works well. Thank you everybody.

@kurtiev
Copy link
Contributor

kurtiev commented Jun 12, 2023

Seems like version 11 of "cordova-plugin-purchase" cannot be used on Android for the next 2 months. Play Market refers to deprecated billing API, take a look message from issue #1425, so this is not a solution anymore... =(

@timenengwerda
Copy link

Seems like version 11 of "cordova-plugin-purchase" cannot be used on Android for the next 2 months. Play Market refers to deprecated billing API, take a look message from issue #1425, so this is not a solution anymore... =(

Is there any update on this since Google's Billing Library 4.0.0 will be deprecated from 1 nov 2023 on

@kurtiev
Copy link
Contributor

kurtiev commented Jul 17, 2023

@timenengwerda Yeah, as you can see in version 13, it's using billing v5 https://github.com/j3k0/cordova-plugin-purchase/blob/master/plugin.xml#L127, So just use a newer version.

@kgkg
Copy link

kgkg commented Jul 17, 2023

@timenengwerda Yeah, as you can see in version 13, it's using billing v5 https://github.com/j3k0/cordova-plugin-purchase/blob/master/plugin.xml#L127, So just use a newer version.

@kurtiev Yeah, but the main issue with version 13 is that it's not working as you can read in this very thread.

@kurtiev
Copy link
Contributor

kurtiev commented Jul 18, 2023

#1428 (comment)

@bevinGithub
Copy link

Hi guys lm on IOS and still using old version 11 which is not working anymore
"cordova-plugin-purchase": "^11.0.0",
"@awesome-cordova-plugins/in-app-purchase-2": "^5.45.0",

How can l resolve this in app purchase 2 on IOS with the version 13?.
Yourr assistance will be much appreciated.

@ShaneJohnsonCC
Copy link

Has anyone solved this issue? @bevinGithub did you find a solution?

@ska-lbit
Copy link

Has anyone solved this issue? @bevinGithub did you find a solution?

#934 (comment)

@ShaneJohnsonCC
Copy link

ShaneJohnsonCC commented Feb 13, 2024

Has anyone solved this issue? @bevinGithub did you find a solution?

#934 (comment)

So your response is to downgrade to something from 2022?.... This plugin is still supported and kept up to date. How is there not a current solution?

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