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
The Java source and target compatibility needs to be set to 1.8 in you app's build script:
@@ -426,7 +426,9 @@ Can be found [here](CHANGELOG.md).
426
426
* Version 4.9
427
427
* The SDK has been updated to use Java 8 features, as such projects will need to be updated to use 1.8 for the Java source and target compatibility as per the [official documentation](https://developer.android.com/studio/write/java8-support).
428
428
* `recordEvent` methods have been changed to to return an `EventAction` object, which can be used for Event-Triggered Campaigns. This means that chaining calls on the `DDNA` SDK instance after calling `recordEvent` is no longer supported.
429
-
429
+
* [Version 4.12](docs/migrations/4.12.md)
430
+
* Critical updates have been made to the Firebase integration in library-notifications. Please follow this guide if you are using push notifications in your project and are updating to this version of the SDK or later.
431
+
430
432
## License
431
433
The sources are available under the Apache 2.0 license.
Notifications have been updated to use the latest Firebase Messaging Libraries, which require some additional values to be defined to work with the deltaDNA Platform. Read on to find out how to upgrade from a previous version of the deltaDNA Android SDK.
3
+
4
+
## Notifications
5
+
### Manifest
6
+
7
+
8
+
#### Firebase Configuration Values
9
+
In previous versions, the Firebase Cloud Messaging integration required the following `meta-data` entries in the manifest :
10
+
```xml
11
+
<application ...>
12
+
...
13
+
14
+
<meta-data
15
+
android:name="ddna_application_id"
16
+
android:resource="@string/application_id"/>
17
+
<meta-data
18
+
android:name="ddna_sender_id"
19
+
android:resource="@string/sender_id"/>
20
+
21
+
</application>
22
+
```
23
+
From this version on, the following manifest entries must be defined :
24
+
```xml
25
+
<application ...>
26
+
...
27
+
28
+
<meta-data
29
+
android:name="ddna_application_id"
30
+
android:resource="@string/application_id"/>
31
+
<meta-data
32
+
android:name="ddna_sender_id"
33
+
android:resource="@string/sender_id"/>
34
+
<meta-data
35
+
android:name="ddna_fcm_project_id"
36
+
android:resource="@string/fcm_project_id"/>
37
+
<meta-data
38
+
android:name="ddna_fcm_api_key"
39
+
android:resource="@string/fcm_api_key"/>
40
+
41
+
</application>
42
+
```
43
+
The values for `ddna_fcm_project_id` and `ddna_fcm_api_key` can be found in your settings menu on the firebase console for the project - they are the `Project ID` and `Web API Key` respectively.
44
+
45
+
If using Unity then these values should be configured through the Unity Editor menu item.
0 commit comments