Skip to content
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

[5.0.0] Fix permission listener, export a few more types #1558

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

nan-li
Copy link
Contributor

@nan-li nan-li commented Sep 14, 2023

Description

One Line Summary

A few fixes post 5.0.0-release, includes 1 bug fix.

Details

Motivation

A few fixes post 5.0.0-release, includes 1 bug fix.

1. Remove OutcomeEvent as no longer used

2. Export a few more types through index file

  • PushSubscriptionState
  • PushSubscriptionChangedState
  • InAppMessageClickResult

3. Add the SDK wrapper type

4. Fix permission boolean
The bridge passes a dictionary, not a single boolean. We need to extract the boolean to pass to permission listeners.

Testing

Manual testing

Test on Android emulator 33 and iPhone 13

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

This change is Reviewable

No longer used
* Export:
- `PushSubscriptionState`
- `PushSubscriptionChangedState`
- `InAppMessageClickResult`
The bridge passes a dictionary, not a single boolean. We need to extract the boolean to pass to permission listeners.
@nan-li nan-li merged commit e0c6f4b into major_release_5.0.0 Sep 18, 2023
2 checks passed
@nan-li nan-li mentioned this pull request Sep 27, 2023
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.

None yet

3 participants