j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.29k stars 529 forks source link

Ionic says plugin not installed on Android only #1464

Closed jeromepissis closed 8 months ago

jeromepissis commented 8 months ago

Hi,

I'm developing an Ionic capacitor application. Your plugin works perfectly on IOS but on Android I have the error "plugin_not_installed".

Modules versions "cordova-plugin-purchase": "^13.8.0", "@awesome-cordova-plugins/in-app-purchase-2": "^6.4.0"

I already tried to use others versions of cordova-plugin-purchase, and install the module "cordova-support-google-services" (no compatible version) but I have the same error.

I read the other issues but I find no solution.

Part of the package.json

"dependencies": {
    "@angular/animations": "^15.2.1",
    "@angular/cdk": "^15.2.1",
    "@angular/common": "^15.2.1",
    "@angular/compiler": "^15.2.1",
    "@angular/core": "^15.2.1",
    "@angular/forms": "^15.2.1",
    "@angular/material": "^15.2.1",
    "@angular/platform-browser": "^15.2.1",
    "@angular/platform-browser-dynamic": "^15.2.1",
    "@angular/platform-server": "^15.2.1",
    "@angular/router": "^15.2.1",
    "@awesome-cordova-plugins/core": "^6.4.0",
    "@awesome-cordova-plugins/in-app-purchase-2": "^6.4.0",
    "@capacitor-community/apple-sign-in": "^5.0.0",
    "@capacitor-community/fcm": "^5.0.2",
    "@capacitor-community/native-market": "^5.0.0",
    "@capacitor/android": "5.2.1",
    "@capacitor/app": "^5.0.6",
    "@capacitor/browser": "^5.0.6",
    "@capacitor/core": "5.2.1",
    "@capacitor/device": "^5.0.6",
    "@capacitor/haptics": "5.0.6",
    "@capacitor/ios": "5.2.1",
    "@capacitor/keyboard": "5.0.6",
    "@capacitor/preferences": "^5.0.6",
    "@capacitor/push-notifications": "^5.0.6",
    "@capacitor/splash-screen": "^5.0.6",
    "@capacitor/status-bar": "5.0.6",
    "@capacitor/toast": "^5.0.6",
    "@capawesome/capacitor-app-update": "^5.0.1",
    "@capgo/inappbrowser": "^1.2.4",
    "@ionic/angular": "^7.1.3",
    "@nguniversal/express-engine": "^15.2.0",
    "@types/poool-access": "^5.10.0",
    "cordova-plugin-purchase": "^13.8.0",
    "cordova-support-google-services": "^1.4.1",
    "del": "6.1.1",
    "express": "^4.15.2",
    "firebase": "^10.3.0",
    "gulp": "^4.0.2",
    "gulp-rev": "^9.0.0",
    "gulp-rev-collector": "^1.3.3",
    "gulp-rev-delete-original": "^0.2.3",
    "merge-stream": "^2.0.0",
    "ng-recaptcha": "^11.0.0",
    "ngx-pixel": "^1.1.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },

More logs : image

Of course I installed module with npm install beacause I'm in capacitor version.

Could you please help me ?

jeromepissis commented 8 months ago

I finally write my service directly with your plugin unless "@awesome-cordova-plugins/in-app-purchase-2" as you mentioned in your Readme.

Many thx