Skip to content

Low level API fixes (MOB-21261, MOB-21262, MOB-21447, and MOB-21460)#64

Merged
rymorale merged 3 commits intoadobe:dev-v3.0.1from
rymorale:api21-issues
Aug 7, 2024
Merged

Low level API fixes (MOB-21261, MOB-21262, MOB-21447, and MOB-21460)#64
rymorale merged 3 commits intoadobe:dev-v3.0.1from
rymorale:api21-issues

Conversation

@rymorale
Copy link
Copy Markdown
Contributor

@rymorale rymorale commented Aug 2, 2024

Description

This PR resolves various issues specific to API23 and below.

MOB-21447: replaces the heads up notification (HUD) on API 21 with the expanded push template as the heads up notification is not expandable. On API 23 and 22, the heads up notification is replaced by the collapsed layout as the HUD notification is expandable but does not show any title or body text.

API21-23 HUD notification prior to fix:

API21 HUD notification after fix:

API23 HUD notification after fix:

MOB-21262: use a expanded layout with a smaller image area to allow the notification action buttons to be displayed on the bottom of each notification.

API21-23 notification image size prior to fix:

API21-23 notification image size after fix:

MOB-21261: use the setOnlyAlertOnce on the NotificationCompat.Builder to prevent an interaction intent from creating a new notification each time a push template interaction occurs.

MOB-21460: Throw a NotificationConstructionFailedException if attempting to build an Input Box notification on API23 or below. The feature was introduced in API24.

Related Issue

https://jira.corp.adobe.com/browse/MOB-21261
https://jira.corp.adobe.com/browse/MOB-21262
https://jira.corp.adobe.com/browse/MOB-21447
https://jira.corp.adobe.com/browse/MOB-21460

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

MOB-21447: replaces the heads up notification (HUD) on API 21 with the expanded push template as the heads up notification is not expandable. additionally, the heads up notification is replaced by the collapsed layout on API22 and 23 as the HUD notification is expandable but does not show any title or body text.
MOB-21261: use the `setOnlyAlertOnce` on the NotificationCompat.Builder to prevent an interaction intent from creating a new notification each time a push template interaction occurs.
MOB-21262: use a expanded layout with a smaller image area to allow the notification action buttons to be displayed on the bottom of each notification.
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.24%. Comparing base (063e3de) to head (de8a0f7).
Report is 23 commits behind head on dev-v3.0.1.

Additional details and impacted files
@@               Coverage Diff                @@
##             dev-v3.0.1      #64      +/-   ##
================================================
+ Coverage         91.20%   91.24%   +0.04%     
- Complexity          282      287       +5     
================================================
  Files                38       38              
  Lines              1865     1874       +9     
  Branches            173      176       +3     
================================================
+ Hits               1701     1710       +9     
  Misses              101      101              
  Partials             63       63              
Flag Coverage Δ
unit-tests 91.24% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rymorale rymorale changed the title fixes for MOB-21261, MOB-21262, and MOB-21447 Low level API fixes (MOB-21261, MOB-21262, MOB-21447, and MOB-21460) Aug 5, 2024
@rymorale rymorale merged commit b7c6746 into adobe:dev-v3.0.1 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants