By default, yes. Pushwoosh stores and matches User IDs exactly as you send them, without changing their case or trimming them. User123 and user123 are two different users, each with their own devices and user-specific tags.
Exception: an account can have the case-insensitive User ID setting enabled. In that case Pushwoosh converts User IDs to lowercase when it receives them, so User123 and user123 are the same user. This setting is off by default; if you are not sure whether it is enabled for your account, ask Pushwoosh Support.
What happens if the case doesn't match (default behavior)
-
Sending to users. A message sent via the
usersparameter toUser123does not reach the devices registered foruser123. The message completes normally but has 0 recipients, and no error is returned. - Reading user data. A request with a different case returns "user not found", even though the user exists.
-
Registration. Calling
registerUser/setUserIdwith a different case creates a new user instead of updating the existing one. - CSV import. User ID values are matched exactly. Use the tag names exactly as they appear in your project.
How to avoid it
Pick one canonical form of your User ID (for example, always lowercase) and use it everywhere: in the SDK (setUserId), in API requests, and in CSV imports. If you already have users registered in mixed case, send messages using exactly the IDs that are stored in Pushwoosh.
Comments
0 comments
Please sign in to leave a comment.