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

Fix OSDeviceState has wrong keys for pushDisabled and subscribed #468

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

nan-li
Copy link
Contributor

@nan-li nan-li commented Aug 26, 2021

OSDeviceState uses pushDisabled and subscribed

  • These names are set in the OneSignalPlugin.m and OneSignalPlugin.java classes for the method getDeviceState()
  • This is different from OSSubscriptionState which uses isSubscribed and isPushDisabled

Also update example/pubspec.yaml to use local onesignal_flutter plugin

  • This was a problem if someone doesn't set the local path in pubspec.yaml
  • Running and testing the example app won't actually run the new changed code in the SDK

This change is Reviewable

- This was a problem if someone doesn't set the local path in `pubspec.yaml`
- Running and testing the example app won't actually run the new changed code in the SDK
- OSDeviceState uses `pushDisabled` and `subscribed`
- These values are set in the `OneSignalPlugin.m` and `OneSignalPlugin.java` classes for the method `getDeviceState()`
- This is different from `OSSubscriptionState` which uses `isSubscribed` and `isPushDisabled`
@nan-li nan-li requested review from jkasten2 and emawby August 26, 2021 21:50
Copy link
Contributor

@emawby emawby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nan-li nan-li merged commit fac2834 into main Aug 27, 2021
@nan-li nan-li deleted the fix/DeviceState-wrong-key-names branch August 27, 2021 18:05
@nan-li nan-li mentioned this pull request Aug 28, 2021
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