In App Purchase error when owned subscription

Hello everyone, I have a problem with the plugin in app purchase, the products load correctly and I can make the purchase of a subscription but when the purchase is successful the app stops working and I have to close it and reopen it but at reopening it stops working and does not allow me to do anything

these are the dependencies

"@angular/common": "~9.1.6",
    "@angular/core": "~9.1.6",
    "@angular/fire": "^6.0.0",
    "@angular/forms": "~9.1.6",
    "@angular/platform-browser": "~9.1.6",
    "@angular/platform-browser-dynamic": "~9.1.6",
    "@angular/router": "~9.1.6",
    "@capacitor/android": "^2.4.7",
    "@capacitor/core": "^2.4.7",
    "@capacitor/ios": "^2.4.7",
    "@elastic/apm-rum-angular": "^2.1.1",
    "@fortawesome/angular-fontawesome": "^0.6.1",
    "@fortawesome/fontawesome-svg-core": "^1.2.28",
    "@fortawesome/free-brands-svg-icons": "^5.13.0",
    "@fortawesome/free-regular-svg-icons": "^5.13.0",
    "@fortawesome/free-solid-svg-icons": "^5.13.0",
    "@ionic-native/base64-to-gallery": "^5.34.0",
    "@ionic-native/core": "^5.0.7",
    "@ionic-native/in-app-purchase-2": "^5.36.0",
    "@ionic-native/splash-screen": "^5.0.0",
    "@ionic-native/status-bar": "^5.0.0",
    "@ionic/angular": "^5.0.0",
    "@ionic/pwa-elements": "^1.5.2",
    "angular-pintura": "file:local_modules/angular-pintura",
    "capacitor-firebase-auth": "^2.3.5",
    "chart.js": "^2.9.3",
    "cordova-base64-to-gallery": "^4.1.3",
    "cordova-plugin-purchase": "^10.6.1",
    "firebase": "^7.15.1",
    "moment": "^2.27.0",
    "nanoid": "^3.1.23",
    "ngx-socket-io": "^3.2.0",
    "pintura": "file:local_modules/pintura",
    "rollbar": "^2.21.0",
    "rxjs": "~6.5.1",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"