launchdarkly / hello-react-native

Hello LaunchDarkly for React Native
4 stars 22 forks source link

Identify non-anonymous users #8

Closed bwoskow-ld closed 4 years ago

bwoskow-ld commented 4 years ago

As the default behavior in the iOS SDK sets users to be anonymous=true, we should set users to be anonymous=false by default. Note that we need to do this in two places -- for the initially identified user and for any user identified by an "Identify" button click.

Previously, we were using the default underlying SDK behavior in the first case and incorrectly setting it in the second case.