capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

fix(ios): Fixing wrong Firebase dependency #40

Closed borodiliz closed 4 years ago

borodiliz commented 4 years ago

While updating my project to Capacitor 2 I have encountered the following problem:

Captura de pantalla 2020-05-02 a las 13 16 06

The problem is causing due to capacitor-fcm. Two different Firebase versions are being attempted to install:

Captura de pantalla 2020-05-02 a las 11 45 28

This minor change solves the problem. Tested in the following environment:

πŸ’Š   Capacitor Doctor  πŸ’Š 

Latest Dependencies:

  @capacitor/cli: 2.0.2

  @capacitor/core: 2.0.2

  @capacitor/android: 2.0.2

  @capacitor/electron: 2.0.2

  @capacitor/ios: 2.0.2

Installed Dependencies:

  @capacitor/electron not installed

  @capacitor/cli 2.0.2

  @capacitor/ios 2.0.2

  @capacitor/android 2.0.2

  @capacitor/core 2.0.2

[success] Android looking great! πŸ‘Œ
  Found 11 Capacitor plugins for ios:
    @jonoj/capacitor-fused-location (1.2.1)
    capacitor-fcm (2.0.0)
    cordova-plugin-badge (0.8.8)
    cordova-plugin-facebook4 (6.4.0)
    cordova-plugin-file (6.0.2)
    cordova-plugin-file-opener2 (3.0.0)
    cordova-plugin-file-transfer (1.7.1)
    cordova-plugin-googleplus (8.4.0)
    cordova-plugin-ionic (5.4.7)
    cordova-plugin-whitelist (1.3.4)
    cordova-sqlite-storage (5.0.0)
[success] iOS looking great! πŸ‘Œ
stewones commented 4 years ago

thanks @borodiliz

stewones commented 4 years ago

we're starting fresh. please make sure to install the correct package

package name @capacitor-community/fcm version > 1.0.3