File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,15 @@ interface IUserManager {
27
27
val pushSubscription: IPushSubscription
28
28
29
29
/* *
30
- * onesignalId , empty if this is current unavailable
30
+ * The UUID generated by OneSignal to represent a user , empty if this is currently unavailable
31
31
*/
32
32
val onesignalId: String
33
33
34
34
/* *
35
- * externalId, empty if this is current unavailable
35
+ * The External ID is OneSignal's default and recommended alias label. This should be the main
36
+ * identifier you use to identify users. It is set when calling the [OneSignal.login] method.
37
+ *
38
+ * This is empty if the External ID has not been set.
36
39
*/
37
40
val externalId: String
38
41
@@ -153,6 +156,9 @@ interface IUserManager {
153
156
/* *
154
157
* Add an observer to the user state, allowing the provider to be
155
158
* notified whenever the user state has changed.
159
+ *
160
+ * Important: When using the observer to retrieve the onesignalId, check the externalId as well
161
+ * to confirm the values are associated with the expected user.
156
162
*/
157
163
fun addObserver (observer : IUserStateObserver )
158
164
You can’t perform that action at this time.
0 commit comments