Closed KBRR11 closed 2 years ago
What version of Capacitor are you using? Specifically @capacitor/core
and @capacitor/cli
? Make sure you are on @latest
(currently 3.3.2
).
If this is still an issue on @latest
then check out the staticPlugins
config here: https://capacitorjs.com/docs/config
I solved it by updating to the latest capacitor version: 3.3.2 and updating my Onesignal versions:
"@ ionic-native / onesignal": "^ 5.36.0",
"onesignal-cordova-plugin": "^ 2.11.4",
in the latest version of Capacitor you can add any plugin you want to the static list from the config file. Use the staticPlugins array inside the cordova object https://capacitorjs.com/docs/config
my capacitor.config.json looked like this:
{
"appId": "YOUR APP ID",
"appName": "YOUR APP NAME",
"bundledWebRuntime": false,
"npmClient": "npm",
"webDir": "www",
"android": {
"allowMixedContent": true
},
"plugins": {
"SplashScreen": {
"launchShowDuration": 3000
},
"cordova": {
"staticPlugins": [
"onesignal-cordova-plugin"
]
}
I have CocoaPods 1.11.2 and i get this issue:
before I had no problems with doing npx or ionic capacitor sync, but my Mac had problems and I reset it, I don't know if the Cocoapods version has something to do or something like that