Skip to content

Commit 98a1cfc

Browse files
authored
[Sdk 887] Views platform field updated (#30)
* views platform field updated to 'java-native' * change log added * Fixed platform info in views, --------- Co-authored-by: Zahid Zafar <>
1 parent e04ca42 commit 98a1cfc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
- "isTestModeEnabled".
77
- "setLoggingTag"
88
* ! Minor breaking change ! The "TestMode" functionality is being removed from the SDK.
9-
* ! Minor breaking change ! It is not possible to set the logging tag anymore
9+
* ! Minor breaking change ! It is not possible to set the logging tag anymore.
10+
* Fixed a bug where the wrong platform field value was being sent in the view request.
1011

1112
20.11.5
1213
* Fixed a bug where the backend mode module produces "null pointer exceptions" in case not initialized.

sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ViewImpl implements View {
1515
static final String VISIT = "visit";
1616
static final String VISIT_VALUE = "1";
1717
static final String SEGMENT = "segment";
18-
static final String SEGMENT_VALUE = "Android";
18+
static final String SEGMENT_VALUE = System.getProperty("os.name");
1919
static final String START = "start";
2020
static final String START_VALUE = "1";
2121
static final String EXIT = "exit";

0 commit comments

Comments
 (0)