You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,8 +121,13 @@ Note that `FirebaseInstanceIdService` is deprecated and replaced with `onNewToke
121
121
> ⚠ Don't specify both email and userId in the same session, as they will be treated as different users by the SDK. Only use one type of identifier, email or userId, to identify the user.
122
122
123
123
3.Registerfor remote notifications
124
-
125
-
On application launch (or whenever you want to register the token), call `registerForPush`:
124
+
125
+
IterableSDK automatically registers the push token with Iterable whenever `setEmail` or `setUserId` is called.
126
+
>⚠ Thisdefault behavior is the preferred way of handling token registrations.
127
+
128
+
If you want to trigger token registration manually, first disable automatic registration by calling `setAutoPushRegistration(false)` on `IterableConfig.Builder` when initializing the SDK.
129
+
130
+
Than call `registerForPush` whenever you want to register the token:
0 commit comments