React-native-firebase: Error: You attempted to use a firebase module that's not installed natively on your iOS project by calling firebase.messaging().

Created on 14 Mar 2019  路  8Comments  路  Source: invertase/react-native-firebase


Issue




Project Files






iOS

ios/Podfile:

  • [ ] I'm not using Pods
  • [x] I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A

Android

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->

Environment

  • Platform that you're experiencing the issue on:

    • [ ] iOS

    • [ ] Android

    • [X ] iOS but have not tested behavior on Android

    • [ ] Android but have not tested behavior on iOS

    • [ ] Both

  • If known, the version of the platform are you experiencing the issue on:

    • ADD_SOMETHING_HERE e.g. iOS 10 or Android API 28

  • Operating System:

    • [X ] MacOS, version: N/A

    • [ ] Windows, version: N/A

    • [ ] Other, please specify: N/A

  • Build Tools:

    • XCode 10

  • **`React Native 0.58.6
  • **React Native Firebase library version:5.15.00

    • ADD_SOMETHING_HERE

  • Firebase module(s) you're using that has the issue:

    • [x] N/A

    • [ ] Authentication

    • [ ] Analytics

    • [ ] Cloud Firestore

    • [X ] Cloud Messaging (FCM)

    • [ ] Crashlytics

    • [ ] Dynamic Links

    • [ ] Functions Callable

    • [ ] In App Messaging

    • [ ] Indexing

    • [ ] Invites

    • [ ] Instance ID

    • [ ] ML Kit

    • [ ] Notifications

    • [ ] Performance Monitoring

    • [ ] Realtime Database

    • [ ] Remote Config

    • [ ] Storage

  • Are you using TypeScript?

    • [X ] No

    • [ ] Yes, version: N/A

  • Are you using Expo, e.g. ExpoKit?

    • [x] No

    • [ ] Yes, I've _not_ ejected

    • [ ] Yes, but I have ejected to ExpoKit

    • [ ] Yes, but I have ejected to vanilla React Native

    • Expo version: N/A




Think react-native-firebase is great? Please consider supporting the project with any of the below:

Everything else in firebase worked fine, however when I try to use fcm, it starts to fail.

when I try to run it in xcode, I get

Error: You attempted to use a firebase module that's not installed natively on your iOS project by calling firebase.messaging().
Ensure you have the required Firebase iOS SDK pod for this module included in your Podfile, in this instance confirm you've added "pod 'Firebase/Messaging'" to your Podfile

However, I do have pod 'Firebase/Messaging', '~> 5.15.0' in my cocoapods.
none of the messaging function is working right now

Stale

Most helpful comment

try deleting the pod, running pod install, then adding the pod again and installing. re-check if you have followed all of the instructions steps.

All 8 comments

try deleting the pod, running pod install, then adding the pod again and installing. re-check if you have followed all of the instructions steps.

I tried deleting the podfile, pod.lock, xcspace and all the files and re-ran pod install and pod update but it did not fix.

What does your Podfile look like?

I have exactly same issue but without using Pod (download Firebase-5.19.0.zip and follow readme inside it). Something I missed?

For those who stumble with this issue AND add this module manually (not using Pod), 12 steps (yes not 11, read the thread carefully) in this thread is the solution (readme should be updated actually).

Hello 馃憢, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasan-s picture jasan-s  路  137Comments

TalEliel picture TalEliel  路  48Comments

matthieunelmes picture matthieunelmes  路  66Comments

umang-simform picture umang-simform  路  77Comments

abdullahizzuddiin picture abdullahizzuddiin  路  80Comments