You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[📚] New setup guide for iOS Credentials in RN 0.77 #8248
The documentation on rnfirebase.io is as new as we have it, if there is something out of date there is an edit button top right of every page and the github PR flow in their web UI for text changes is trivial. I imagine since you mention react-native 0.77 you have noticed that react-native now uses AppDelegate.swift vs .mm. Please feel free to post a PR
Multidex was a workaround for old Android devices that are no longer supported, and we may all happily forget about multidex forever. And you never ever needed to think about it for iOS, it was an Android thing. You will never need it with modern Android.
Hi,
I think I will reach the solution a little late because I don't have technical knowledge about Native Android (kotlin) and iOS (swift) development. If I reach the solution, I will definitely update the docs and create PR.
I will skip the Multidex state. Thank you for your technical guidance.
I wonder if you can give some guidance for the “Background Application State” state?
@vishalksymentix and @Barot-sam, I plan to try out your solutions as soon as possible. I’ll share my experience here, letting you know whether the solution works and if I run into any issues. For now, I’ve implemented it as shown below and will continue with my work.
I was facing unexpected crashes with Swift integration, so I temporarily switched back to Objective-C (.mm files) in RN 0.77. I followed these instructions to resolve the issue. This workaround is running smoothly for now, and I'll update once I get a stable Swift solution.
self.moduleName = "***"
self.dependencyProvider = RCTAppDependencyProvider()
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
The install docs now have an RN 0.77+ AppDelegate.swift path (FirebaseApp.configure()), landed in #8265.
Messaging background / isHeadless Swift docs are still incomplete. Tracking that separately in #8217.
Activity
mikehardy commentedon Jan 24, 2025
Hi there - please just hit the edit button top right of the page and propose a change
jordankkk commentedon Jan 24, 2025
@mikehardy I apologize, as I’m new to React Native and am unsure how to make the change. 😁
romanakash commentedon Jan 25, 2025
Created a PR here #8251
tahaipek commentedon Jan 29, 2025
Thank you for your guidance and PR.
Similarly, do you have a guide to enable Multidex on Swift?
https://rnfirebase.io/enabling-multidex#enabling-multidex
Similarly, do you have a guide to configure Cloud Messaging in Swift?
https://rnfirebase.io/messaging/usage#background-application-state
Or was the problem solved from a more fundamental point in RN 0.77? I couldn't find any documentation on this.
I noticed that the documentation of rnfirebase.io is old.
I'm currently trying to update ReactNative 0.72 to 0.77, so I need to adapt many packages back to 0.77.
mikehardy commentedon Jan 29, 2025
@tahaipek 👋
The documentation on rnfirebase.io is as new as we have it, if there is something out of date there is an edit button top right of every page and the github PR flow in their web UI for text changes is trivial. I imagine since you mention react-native 0.77 you have noticed that react-native now uses AppDelegate.swift vs .mm. Please feel free to post a PR
Multidex was a workaround for old Android devices that are no longer supported, and we may all happily forget about multidex forever. And you never ever needed to think about it for iOS, it was an Android thing. You will never need it with modern Android.
tahaipek commentedon Jan 29, 2025
Hi,
I think I will reach the solution a little late because I don't have technical knowledge about Native Android (kotlin) and iOS (swift) development. If I reach the solution, I will definitely update the docs and create PR.
Thanks in advance for your advice.
MezillaJohn commentedon Feb 9, 2025
Please can you guys update this and the docs as soon as possible, cause we are stuck here.
vishalksymentix commentedon Feb 11, 2025
This is the updated Doc of react native 0.77 with firebase. How can you modify appdelegate.swift to integrate the firebase
use this to import firebase
import Firebase
use this to initialize firebase
FirebaseApp.configure()
AnmolMalik-BWES commentedon Feb 11, 2025
App started crashing after FirebaseApp.configure()
"@react-native-firebase/app": "^21.7.2",
"@react-native-firebase/messaging": "^21.7.2",
"react-native": "^0.77.0",
Do I also need to change Podfile
vishalksymentix commentedon Feb 12, 2025
Please mention your podfile here
AnmolMalik-BWES commentedon Feb 12, 2025
BrahmbhattOm commentedon Feb 14, 2025
@AnmolMalik-BWES, After some digging I achieved it and made a guide on the medium for the react-native 0.77 I hope it helps https://medium.com/@ompbarot9816/firebase-and-google-maps-for-react-native-0-77-full-guide-8fb9646b7ef5
I'm using react-native-firebase version 20.5.0. please let me know if I can help.
tahaipek commentedon Feb 14, 2025
@vishalksymentix and @Barot-sam, I plan to try out your solutions as soon as possible. I’ll share my experience here, letting you know whether the solution works and if I run into any issues. For now, I’ve implemented it as shown below and will continue with my work.
I was facing unexpected crashes with Swift integration, so I temporarily switched back to Objective-C (.mm files) in RN 0.77. I followed these instructions to resolve the issue. This workaround is running smoothly for now, and I'll update once I get a stable Swift solution.
Below is the code I used:
AppDelegate.mm file:
AppDelegate.h file:
37 remaining items
blueromans commentedon Mar 17, 2025
import UIKit
import React_RCTAppDelegate
import ReactAppDependencyProvider
import FirebaseCore
import FirebaseMessaging
@main
class AppDelegate: RCTAppDelegate, MessagingDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure();
Messaging.messaging().delegate = self
application.registerForRemoteNotifications()
}
override func sourceURL(for bridge: RCTBridge) -> URL? {
return self.bundleURL()
}
override func bundleURL() -> URL? {
#if DEBUG
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
Messaging.messaging().apnsToken = deviceToken
}
}
this is the working one
wasimirza-et commentedon Mar 20, 2025
https://medium.com/@wasi.mirza/react-native-0-78-firebase-phone-authentication-step-by-step-guide-af85be0a0621
Please check my Medium Article for the 0.78 React Native setup.
This will solve the problem. Hopefully for all.
Thank you.
github-actions commentedon Apr 17, 2025
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions.
appli-intramuros commentedon Jul 7, 2025
This is what I've done (seems to work) with react-native v0.79.5 and react-native-firebase v21.11.0 :
makedirectory commentedon Oct 21, 2025
@mikehardy Can you please confirm if this is correct and let me know if the documentation needs to be updated. If so, I'll do it!
I can add the changes here needed for
ios/<Application>/AppDelegate.swift?mikehardy commentedon Jan 29, 2026
I'm not sure this is handled, needs review
Gopal-Avegen commentedon Feb 2, 2026
mikehardy commentedon Feb 2, 2026
russellwheatley commentedon Aug 7, 2026
The install docs now have an RN 0.77+
AppDelegate.swiftpath (FirebaseApp.configure()), landed in #8265.Messaging background /
isHeadlessSwift docs are still incomplete. Tracking that separately in #8217.Closing this one.