Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Fixes removeEmail calls on Android and iOS and removeSms calls on iOS
Details
Motivation
Fixes errors when calling removeEmail on Android and iOS and removeSms on iOS
Scope
No changes to the public API as fixes apply to native calls to OneSignal Android and iOS SDKs
Call arguments for removeEmail and removeSms do not have defined keys in user.dart and calling with a key returns an error on iOS.
Fix could be done one of 2 ways:
Testing
Manual testing
Tested removeEmail and removeSms on an user with emails and sms subscriptions and with none, app build of the OneSignal example app on on a emulated Pixel 4 with Android 12 and physical iPhone 12 with iOS 15.5.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is