capacitor-community / admob

Community plugin for using Google AdMob
MIT License
220 stars 68 forks source link

⚡️ [error] - Could not init Admob {"code":"UNIMPLEMENTED"} #326

Open faguilera85 opened 4 months ago

faguilera85 commented 4 months ago

Describe the bug I'm getting the following error in iOS Xcode Simulator {"code":"UNIMPLEMENTED"} when I try to initialize AdMob using await AdMob.initialize();.

I'm using Capacitor 6.

Dependencies


    "@angular/animations": "^17.0.2",
    "@angular/common": "^17.0.2",
    "@angular/compiler": "^17.0.2",
    "@angular/core": "^17.0.2",
    "@angular/forms": "^17.0.2",
    "@angular/platform-browser": "^17.0.2",
    "@angular/platform-browser-dynamic": "^17.0.2",
    "@angular/router": "^17.0.2",
    "@capacitor-community/admob": "^6.0.0",
    "@capacitor-community/firebase-analytics": "^6.0.0",
    "@capacitor-firebase/messaging": "^6.0.0",
    "@capacitor/android": "^6.0.0",
    "@capacitor/app": "^6.0.0",
    "@capacitor/core": "^6.0.0",
    "@capacitor/haptics": "^6.0.0",
    "@capacitor/ios": "^6.0.0",
    "@capacitor/keyboard": "^6.0.0",
    "@capacitor/push-notifications": "^6.0.0",
    "@capacitor/splash-screen": "^6.0.0",
    "@capacitor/status-bar": "^6.0.0",
    "@ionic/angular": "^8.2.0",
    "chart.js": "^4.4.2",
    "cordova-plugin-purchase": "^13.11.1",
    "firebase": "^10.12.2",
    "ionicons": "^7.0.0",
    "moment": "^2.30.1",
    "rxjs": "~7.8.0",
    "swiper": "^11.0.7",
    "tslib": "^2.3.0",
    "zone.js": "~0.14.2"
  },
NilsChr commented 3 months ago

Did you find a solution to this?

faguilera85 commented 3 months ago

Yes, finally I solved it. Some capacitor dependencies were not in v6 but in v5 instead. Please double check. Also run a npm install again if necessary.