Push by User ID
Send targeted push messages to users across their multiple devices
This method allows you to send targeted push notifications to your users across their multiple devices. Resulting push notifications will be delivered to all devices associated with a specified User ID.
Call setUserId with the first app launch or in case your User ID has changed. User ID could be a user identifier that you keep in your own database.
public void setUserId(java.lang.String userId)
By default, when an app with Pushwoosh SDK is launched for the first time, it sets a device HWID as a UserID. You can call setUserId on a login to set any required value to associate a device with a particular user. When a user logs out, you can reset this value to a default one with another setUserId call, e.g. to an initial HWID value.
"content": "Hello world!",