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
Copy file name to clipboardExpand all lines: README.md
+20-7Lines changed: 20 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,22 @@ Use the native Firebase SDK in Axway Titanium. This repository is part of the [T
18
18
19
19
Configure Firebase without additional parameters.
20
20
21
+
<b>Android</b>: returns false if it was already configured or if there was an error. Calling `deleteInstanceId()` can be used to re-configure it again.
22
+
21
23
##### `configure(parameters)`
22
24
23
-
Configure Firebase without configuration parameters.
25
+
Configure Firebase with configuration parameters:
26
+
27
+
| Name | Type | Component | Platform |
28
+
| - | - | - | - |
29
+
| `file` | String | | *
30
+
31
+
By passing the `file` property, you can give a location to the Firebase plist file (usually named "GoogleService-Info.plist"), which contains all necessary properties for your Firebase project. This makes all other properties unnecessary. For Android: place the file in `/app/assets/android/` and pass just the filename.
32
+
33
+
Or you can configure Firebase without a file by passing these parameters:
24
34
25
35
| Name | Type | Component | Platform |
26
36
| - | - | - | - |
27
-
| `file`* | String | | *
28
37
| `googleAppID` | String | | *
29
38
| `GCMSenderID` | String | Cloud Messaging | *
30
39
| `APIKey` | String | Auth | *
@@ -38,16 +47,15 @@ Configure Firebase without configuration parameters.
38
47
| `deepLinkURLScheme` | String | | iOS
39
48
| `applicationID` | String | Analytics | Android
40
49
41
-
\* By passing the `file` property, you can give a location to the Firebase plist file (usually named "GoogleService-Info.plist"), which contains all necessary properties for your Firebase project. This makes all other properties unnecessary. For Android: place the file in `/app/assets/android/` and pass just the filename.
42
50
43
51
##### `deleteInstanceId(callback)`
44
52
45
53
Delete the current `instanceId` (invalidating all tokens). See the [Firebase docs](https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId.html#deleteInstanceId()) for details.
46
54
47
55
The callback receives an object containing this fields:
48
56
49
-
| Key | Type |Description |
50
-
| - | - | - |
57
+
| Key | Type |Description| Platform|
58
+
| - | - | - | - |
51
59
| `success` | Boolean | `true` if the deletion succeeded | *
0 commit comments