andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 277 forks source link

Xcode 12.3 No visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' #234

Open luiscontrerasm opened 3 years ago

luiscontrerasm commented 3 years ago

I have an Ionic Prpject, since yesterday i can compile because i have errors in the FCM Plugin file.

This is the environment that im using. Xcode: 12.3 Cordova ios: 6.1 Pod Version : 1.10.1

Pod File `# DO NOT MODIFY -- auto-generated by Apache Cordova source 'https://cdn.cocoapods.org' platform :ios, '11.0'

target 'FX360' do project 'FX360.xcodeproj' pod 'Firebase/Analytics', '>= 6.3.0' pod 'Firebase/Messaging', '>= 6.3.0' end `

{ "name": "fx360", "version": "1.1.44", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve --open", "build": "ionic build --prod", "ios": "ionic cordova run ios --livereload", "android": "ionic cordova run android --livereload --debug --ssl", "build-ios": "ionic cordova build ios --prod", "build-android": "ionic cordova build android --prod", "prepare-android": "ionic cordova prepare android", "res-android": "cordova-res android", "test": "ng test", "lint": "ng lint --fix", "e2e": "ng e2e", "analyze": "source-map-explorer www/*", "release-android": "ionic cordova build android --prod --release", "sign-android": "jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore fx-pos-key.keystore ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk fx_pos", "zipalign-android": "zipalign -v 4 ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk fx360.apk" }, "private": true, "dependencies": { "@agm/core": "^3.0.0-beta.0", "@angular/common": "^10.1.0", "@angular/compiler": "^10.1.0", "@angular/core": "^10.1.0", "@angular/forms": "^10.1.0", "@angular/platform-browser": "^10.1.0", "@angular/platform-browser-dynamic": "^10.1.0", "@angular/router": "^10.1.0", "@codewithdan/observable-store": "^2.2.11", "@codewithdan/observable-store-extensions": "^2.2.8", "@ionic-native/app-version": "^5.28.0", "@ionic-native/background-mode": "^5.28.0", "@ionic-native/barcode-scanner": "^5.28.0", "@ionic-native/bluetooth-serial": "^5.28.0", "@ionic-native/camera": "^5.29.0", "@ionic-native/core": "^5.28.0", "@ionic-native/device": "^5.28.0", "@ionic-native/fcm": "^5.31.1", "@ionic-native/file": "^5.28.0", "@ionic-native/file-opener": "^5.28.0", "@ionic-native/geolocation": "^5.28.0", "@ionic-native/in-app-browser": "^5.30.0", "@ionic-native/native-audio": "^5.28.0", "@ionic-native/nfc": "^5.28.0", "@ionic-native/preview-any-file": "^5.28.0", "@ionic-native/splash-screen": "^5.28.0", "@ionic-native/status-bar": "^5.28.0", "@ionic/angular": "^5.3.2", "@ionic/angular-toolkit": "^2.3.3", "@ionic/storage": "^2.3.1", "@primetec/primetec-angular": "0.0.22", "compare-func": "^2.0.0", "cordova-ios": "6.2.0", "cordova-plugin-add-swift-support": "^2.0.2", "cordova-plugin-androidx": "^1.0.2", "cordova-plugin-androidx-adapter": "^1.1.1", "cordova-plugin-app-version": "^0.1.9", "cordova-plugin-background-mode": "^0.7.3", "cordova-plugin-bluetooth-serial": "^0.4.7", "cordova-plugin-fcm-with-dependecy-updated": "^4.6.4", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-opener2": "^2.2.1", "cordova-plugin-filepath": "^1.5.8", "cordova-plugin-geolocation": "^4.0.2", "cordova-plugin-nativeaudio": "^3.0.9", "cordova-plugin-preview-any-file": "^0.1.6", "cordova-sqlite-storage": "^3.4.1", "core-js": "^2.6.11", "echarts": "^4.9.0", "haversine": "^1.1.1", "moment": "^2.27.0", "ngx-echarts": "^4.2.2", "ngx-mask": "^9.1.4", "phonegap-nfc": "^1.2.0", "phonegap-plugin-barcodescanner": "^8.1.0", "properties-parser": "^0.3.1", "rxjs": "~6.6.2", "tslib": "^1.13.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "^0.1001.0", "@angular-devkit/core": "^10.1.0", "@angular-devkit/schematics": "^10.1.0", "@angular/cli": "^10.1.0", "@angular/compiler-cli": "^10.1.0", "@angular/language-service": "^10.1.0", "@types/echarts": "^4.6.5", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.12.55", "codelyzer": "^5.2.2", "cordova-plugin-camera": "^5.0.1", "cordova-plugin-device": "^2.0.2", "cordova-plugin-inappbrowser": "^4.1.0", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-ionic-webview": "^4.2.1", "cordova-plugin-splashscreen": "^5.0.4", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.4", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.5.4", "protractor": "^5.4.4", "recursive-readdir": "^2.2.2", "ts-node": "~7.0.0", "tslint": "~6.1.0", "typescript": "~4.0.2" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-webview": { "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" }, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-app-version": {}, "cordova-sqlite-storage": {}, "cordova-plugin-geolocation": {}, "cordova-plugin-file": {}, "cordova-plugin-preview-any-file": {}, "cordova-plugin-file-opener2": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-filepath": {}, "cordova-plugin-androidx": {}, "cordova-plugin-androidx-adapter": {}, "cordova-plugin-fcm-with-dependecy-updated": {}, "cordova-plugin-nativeaudio": {}, "phonegap-nfc": { "NFC_USAGE_DESCRIPTION": "Read NFC Tags" }, "phonegap-plugin-barcodescanner": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-bluetooth-serial": {}, "cordova-plugin-background-mode": {}, "cordova-plugin-camera": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-inappbrowser": {} }, "platforms": [ "ios" ] } }

Screen Shot 2021-03-03 at 10 52 03 Screen Shot 2021-03-03 at 10 51 53 Screen Shot 2021-03-03 at 10 51 46 Screen Shot 2021-03-03 at 10 51 23 Screen Shot 2021-03-03 at 10 50 46
julienR-BePatient commented 3 years ago

Hello have you found a solution ?

luiscontrerasm commented 3 years ago

@julienR-BePatient not yet. i had to remove the plugin from the app meanwhile.

i tried updating cordova versions, ios versions and ionic as well. but nothing worked.

Im stuck on this.

miguelgarces123 commented 2 years ago

Hello have you found a solution ?

luiscontrerasm commented 2 years ago

Hello have you found a solution ?

Nope. Since iOS 11 it's broken. I tried to fixed manually but no luck.

miguelgarces123 commented 2 years ago

@luiscontrerasm I was able to fix it!, you must do the following

  1. cordova plugin rm cordova-plugin-fcm-with-dependecy-updated
  2. cordova plugin add cordova-plugin-fcm-with-dependecy-updated \ --variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/ic_launcher" \ --variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" \ --variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" \ --variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0" \ --variable IOS_FIREBASE_MESSAGING_VERSION="~> 7.4.0"
  3. (Only if you use ionic) npm uninstall @ionic-native/fcm --save
  4. Change package usage in proyect: https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/tree/v7.8.0#with-ionic
  5. You must delete the ios platform: cordova platform rm ios
  6. cordova platform add ios

That's it, let me know if it works for you!.

I am working with Ionic 4, and it works fine.

luiscontrerasm commented 2 years ago

Awesome, i'll try and let you know! Thanks!