File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ firebase-admin
74
74
firebase-ios-sdk
75
75
firebase-js-sdk
76
76
FirebaseApp
77
+ FirebaseCore
77
78
firestore
78
79
Firestore
79
80
GDPR
Original file line number Diff line number Diff line change @@ -89,6 +89,30 @@ For instructions on how to generate required keys and register an app for the de
89
89
90
90
You must call initialize the AppCheck module prior to calling any firebase back-end services for App Check to function.
91
91
92
+ #### Configure AppCheck with iOS credentials (react-native 0.77+)
93
+
94
+ To do that, edit your ` ios/ProjectName/AppDelegate.swift ` and add the following two lines:
95
+
96
+ At the top of the file, import the FirebaseCore SDK right after ` import UIKit ` :
97
+ And within your existing ` didFinishLaunchingWithOptions ` method, add the following to the top of the method:
98
+
99
+ ``` diff
100
+ import UIKit
101
+ + import RNFBAppCheck // <-- This is the import for AppCheck to work
102
+ + import FirebaseCore // <-- From App/Core integration, no other Firebase items needed
103
+ import React
104
+ import React_RCTAppDelegate
105
+ import ReactAppDependencyProvider
106
+
107
+ @main
108
+ class AppDelegate: RCTAppDelegate {
109
+ override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
110
+ + RNFBAppCheckModule.sharedInstance() // <-- new for AppCheck to work
111
+ + FirebaseApp.configure() // <-- From App/Core integration
112
+ ```
113
+
114
+ #### Configure Firebase with iOS credentials (react-native < 0.77)
115
+
92
116
To do that, edit your ` ios/ProjectName/AppDelegate.mm ` and add the following two lines:
93
117
94
118
``` objectivec
You can’t perform that action at this time.
0 commit comments