Skip to content

Conversation

@nan-li
Copy link
Contributor

@nan-li nan-li commented Jan 6, 2023

Description

One Line Summary

More fixes (round 4).

Details

  • printing and toDictionary fixes for push subscription state and permission state.
  • push subscription store should not remove user defaults when user will change. We were getting a bug not able to init the user from cache due to missing push sub model
  • use 409 response code to Identify User to make the switch to that user

Manual testing

iPhone 13 physical on staging and production.

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

nan-li added 4 commits January 6, 2023 02:10
* Before, printing a permission state or subscription state gave good information. Let's make sure they have the `description` method overridden still.
* As a model store, the push subscription model store was also clearing user defaults when the user will change. Don't do that, but all other stores still will.
* We were switching to the user when the Identify User request returns any failure, but we should really check that the code is `409` to go down this path. It could be some other error.
@nan-li nan-li changed the base branch from main to major_release_5.0.0 January 6, 2023 11:36
* We already pointed requests to production
* But now revert the app back to bundle ID `com.onesignal.example`
@nan-li nan-li force-pushed the user_model/alpha_1_round_4 branch from 88845bb to c0e7b8f Compare January 6, 2023 20:20
@nan-li nan-li merged commit 61ad43c into major_release_5.0.0 Jan 6, 2023
@nan-li nan-li deleted the user_model/alpha_1_round_4 branch January 6, 2023 20:45
nan-li added a commit that referenced this pull request Oct 30, 2023
nan-li added a commit that referenced this pull request Oct 30, 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.

3 participants