getUserId
Returns the current user identifier.
This method retrieves the user ID that was previously set using setUserId. Returns null if no user ID has been set. Example:
String userId = Pushwoosh.getInstance().getUserId();
if (userId != null) {
Log.d("Pushwoosh", "Current user: " + userId);
} else {
Log.d("Pushwoosh", "No user ID set");
}
Content copied to clipboard
Return
current user id or null if not set