-
Notifications
You must be signed in to change notification settings - Fork 32
[MOB-5828] Firetv updateuser fix #532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MOB-5828] Firetv updateuser fix #532
Conversation
dataFields.put(IterableConstants.DEVICE_APP_VERSION, IterableUtil.getAppVersion(context)); | ||
dataFields.put(IterableConstants.DEVICE_APP_BUILD, IterableUtil.getAppVersionCode(context)); | ||
dataFields.put(IterableConstants.DEVICE_ITERABLE_SDK_VERSION, IterableConstants.ITBL_KEY_SDK_VERSION_NUMBER); | ||
dataFields.put(IterableConstants.DEVICE_NOTIFICATIONS_ENABLED, !isFireTV(context.getPackageManager()) && NotificationManagerCompat.from(context).areNotificationsEnabled()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field can be removed from populateDeviceDetails and put only in the registerDeviceToken method as it only relates to devices with push enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a small fix needed.
iterableapi/src/main/java/com/iterable/iterableapi/util/DeviceInfoUtils.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some suggestions
iterableapi/src/main/java/com/iterable/iterableapi/util/DeviceInfoUtils.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/util/DeviceInfoUtils.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/util/DeviceInfoUtils.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #532 +/- ##
==========================================
- Coverage 62.29% 61.99% -0.30%
==========================================
Files 67 68 +1
Lines 3970 3984 +14
Branches 462 465 +3
==========================================
- Hits 2473 2470 -3
- Misses 1253 1265 +12
- Partials 244 249 +5
☔ View full report in Codecov by Sentry. |
No description provided.