Giter Club home page Giter Club logo

Comments (13)

iOlivier avatar iOlivier commented on May 28, 2024 11

I also found a solution without having to change the plugin package.

You can go to ios/App/Podfile and add the desired FirebaseCore version like this underneath the existing pods:

def capacitor_pods
  # Automatic Capacitor Pod dependencies, do not delete
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
  pod 'CapacitorCommunityFcm', :path => '../../node_modules/@capacitor-community/fcm'
  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
  # Do not delete

  pod 'FirebaseCore', '~> 7.11.0'
end

After you did the change, don't forget to run pod update.

from fcm.

stewones avatar stewones commented on May 28, 2024 7

For those having issues with cap v2, try adding this in your app podfile

target 'App' do
  capacitor_pods
  # Add your Pods here
  pod 'Firebase/Messaging', '~> 7.11.0'
end

from fcm.

puopg avatar puopg commented on May 28, 2024 6

Awesome, same here, that ended up working:

For those who may care:

target 'App' do
  capacitor_pods
  # Add your Pods here
  pod 'FirebaseCore', '~> 7.9.0'
  pod 'Firebase/Messaging', '~> 7.9.0'
end

from fcm.

magiclockers avatar magiclockers commented on May 28, 2024 4

@stewones seems issue still occur in v1.1.2? just tested
Screen Shot 2021-06-11 at 4 52 54 PM

from fcm.

chvonrohr avatar chvonrohr commented on May 28, 2024 1

We fixed the version for firebase in the podfile so its working meanwhile

from fcm.

stewones avatar stewones commented on May 28, 2024 1

@denisLoncaric can you check if this remains an issue on latest plugin version (v1.1.2) ?
Thank you

from fcm.

damienromito avatar damienromito commented on May 28, 2024

I have the same probleme

Capture d’écran 2021-05-12 à 19 48 13

from fcm.

puopg avatar puopg commented on May 28, 2024

Bump, yup im hitting the same thing. Can someone mention what changed please?

from fcm.

typeoneerror avatar typeoneerror commented on May 28, 2024

Should probably update https://github.com/capacitor-community/fcm/blob/master/ios/Plugin/Podfile#L9-L10 to @puopg's change above.

Can submit a PR if it helps!

from fcm.

chvonrohr avatar chvonrohr commented on May 28, 2024

Same problem for Android here. App crashes when trying to register Push Notification

caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId;
        at com.getcapacitor.plugin.PushNotifications.register(PushNotifications.java:83)
java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId" on path:

I assume this is the same problem but for Android. Any recommendations how to fix that (e.g. define version in build.gradle)?

Update
Nevermind: this was a problem with a different plugin that was requesting a newer firebase-messaging version

from fcm.

Dave-Nandwa avatar Dave-Nandwa commented on May 28, 2024

@iOlivier and what 'Firebase/Messaging' version did you input as well? Still 7.11.0?

from fcm.

stewones avatar stewones commented on May 28, 2024

fixed on v2, please have a try @magiclockers

from fcm.

nkCreation avatar nkCreation commented on May 28, 2024

and for capacitor 2 users ?

from fcm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.