Comments (13)
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.
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.
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.
@stewones seems issue still occur in v1.1.2? just tested
from fcm.
We fixed the version for firebase in the podfile so its working meanwhile
from fcm.
@denisLoncaric can you check if this remains an issue on latest plugin version (v1.1.2) ?
Thank you
from fcm.
I have the same probleme
from fcm.
Bump, yup im hitting the same thing. Can someone mention what changed please?
from fcm.
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.
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.
@iOlivier and what 'Firebase/Messaging' version did you input as well? Still 7.11.0
?
from fcm.
fixed on v2, please have a try @magiclockers
from fcm.
and for capacitor 2 users ?
from fcm.
Related Issues (20)
- Double notification when application is open with Capacitor 4 and FCM 3.0.0 HOT 1
- Can't delete instance after first performed HOT 1
- example app can't be built HOT 1
- How is deleteInstance is supposed to work HOT 7
- Conflicting peer dependency: @capacitor/[email protected] HOT 1
- Requested entity was not found on iOS device
- The refreshToken function returns the Firebase JWT session token instead of the FCM token HOT 1
- [help wanted] I am importing the Cannot use import statement outside a module issue HOT 4
- FCM plugin is not implemented on iOS HOT 1
- Document minimum Android SDK version and iOS build target HOT 1
- Upgrade to capacitor 5 HOT 1
- Notification not coming when App is killed in android.
- FCM.subscribeTo not working on iOS HOT 9
- refreshToken() returns old registration token on Android
- Crash app when receive a notification in background
- Type 'NSNotification.Name?' has no member 'capacitorDidRegisterForRemoteNotifications' (ios) HOT 2
- Not working as expected when using firebase-admin after subscribeTo() HOT 1
- Firebase Messaging statistics always shows "0"
- Enable Firebase Message Delivery Data Export to BigQuery
- Upgrade to capacitor 6 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcm.