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: src/Symfony/Component/Notifier/Bridge/Firebase/CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
CHANGELOG
2
2
=========
3
3
4
+
7.3
5
+
---
6
+
7
+
* Changed to using the new v1 Firebase API
8
+
*[DEPRECATION]`AndroidNotification`, `IOSNotification` and `WebNotification` were deprecated and will be removed in 8.0, use `FirebaseOptions` instead. New Firebase API allows for all platform specific options to be specified for the message. Having options separated by platforms now limits usability.
9
+
*[DEPRECATION] Using DSN for firebase in the old format `firebase://username:password@default` was deprecated, use the new DSN format and specify the required options instead. Not specifying the options will throw error in 8.0.
10
+
*[DEPRECATION]`$token` param in `FirebaseTransport::__construct()` was marked as deprecated because the new Firebase API does not use standard token auth. The param will be removed in 8.0.
All 4 parameters are required. All 4 parameters are located inside your firebase json private key.
14
+
15
+
IMPORTANT: Make sure that `PRIVATE_KEY` is safely url encoded. Get more information in [Notifier documentation](https://symfony.com/doc/current/notifier.html#chat-channel) or use the script below.
16
+
17
+
18
+
Getting credentials for your DSN
19
+
--------------------------------
20
+
21
+
Steps for getting your private key:
22
+
1. Log into the [firebase console](https://console.firebase.google.com/).
23
+
2. Click on your project
24
+
3. Click on the gear icon next to "Project Overview" and click on "Project settings"
25
+
4. Click on "Service accounts" tab
26
+
5. Click on "Generate new private key" button at the bottom
27
+
6. A JSON file with your private key will be downloaded
28
+
29
+
The downloaded private key is a JSON file which should contain the following keys:
30
+
*`type`
31
+
*`project_id`
32
+
*`private_key_id`
33
+
*`private_key`
34
+
*`client_email`
35
+
*`client_id`
36
+
*`auth_uri`
37
+
*`token_uri`
38
+
*`auth_provider_x509_cert_url`
39
+
*`client_x509_cert_url`
40
+
*`universe_domain`
41
+
42
+
You can then use the following script to convert your JSON private key to DSN format:
0 commit comments