OneSignal / OneSignal-DotNet-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your .NET app with OneSignal. https://onesignal.com
MIT License
14 stars 4 forks source link

Add OneSignalId and ExternalId getters as well as a user changed observer #98

Closed emawby closed 2 months ago

emawby commented 3 months ago

Description

One Line Summary

Add OneSignalId and ExternalId getters as well as a user changed observer.

Details

Add User.onesignalId and User.externalId

Also adds User.changed observer to handle changes to either id.

Motivation

Allow apps to get the current OneSignalIdd and external id. Since they can be null we also are adding the ability to observe when the OneSignalId and external id change (including null to non-null).

Scope

New methods on the user namespace

Testing

Manual testing

Tested login/logout on both iOS and Android emulators

Affected code checklist

Checklist

Overview

Testing

Final pass