Skip to content

Commit

Permalink
Update user observer method description with instructions to check ex…
Browse files Browse the repository at this point in the history
…ternalId
  • Loading branch information
jennantilla committed Jan 31, 2024
1 parent f0cfac6 commit 9364c2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ export namespace OneSignal {
}
}

/** Add a callback that fires when the OneSignal user state changes. */
/**
* Add a callback that fires when the OneSignal user state changes.
* Important: When using the observer to retrieve the onesignalId, check the externalId as well to confirm the values are associated with the expected user.
*/
export function addEventListener(
event: 'change',
listener: (event: UserChangedState) => void,
Expand Down

0 comments on commit 9364c2a

Please sign in to comment.