@capacitor-firebase/functions 8.5.1 → 8.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/ios/Plugin/FirebaseFunctions.swift +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,11 @@ The Firebase Cloud Functions plugin is typically used to run backend logic from
|
|
|
24
24
|
| 8.x.x | >=8.x.x | Active support |
|
|
25
25
|
| 7.x.x | 7.x.x | Deprecated |
|
|
26
26
|
|
|
27
|
+
## Guides
|
|
28
|
+
|
|
29
|
+
- [Call Firebase Cloud Functions from a Capacitor App](https://capawesome.io/blog/capacitor-firebase-cloud-functions-guide/): Call serverless backend logic by name or URL, including local emulator testing, with this plugin.
|
|
30
|
+
- [How to Use Firebase in a Capacitor App](https://capawesome.io/blog/how-to-use-firebase-in-a-capacitor-app/): Which plugins pair naturally with your backend logic, from sign-in to the database it reads.
|
|
31
|
+
|
|
27
32
|
## Installation
|
|
28
33
|
|
|
29
34
|
You can use our **AI-Assisted Setup** to install the plugin.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Foundation
|
|
2
|
+
import Capacitor
|
|
2
3
|
import FirebaseCore
|
|
3
4
|
import FirebaseFunctions
|
|
4
5
|
|
|
@@ -9,6 +10,10 @@ import FirebaseFunctions
|
|
|
9
10
|
self.plugin = plugin
|
|
10
11
|
super.init()
|
|
11
12
|
if FirebaseApp.app() == nil {
|
|
13
|
+
guard FirebaseOptions.defaultOptions() != nil else {
|
|
14
|
+
CAPLog.print("[FirebaseFunctions] Firebase was not configured: GoogleService-Info.plist is missing from the app bundle.")
|
|
15
|
+
return
|
|
16
|
+
}
|
|
12
17
|
FirebaseApp.configure()
|
|
13
18
|
}
|
|
14
19
|
}
|
package/package.json
CHANGED