getPushwooshNotificationId

Gets the Pushwoosh internal notification ID.

Returns a unique identifier assigned by Pushwoosh to this notification. This ID is different from the message ID and campaign ID, and is used internally by the SDK. It can be useful for advanced tracking or when communicating with Pushwoosh support about specific notifications. Example:


	  
	  protected boolean onMessageReceived(PushMessage message) {
	      long notificationId = message.getPushwooshNotificationId();
	      long messageId = message.getMessageId();
	      long campaignId = message.getCampaignId();
	
	      // Log all IDs for comprehensive tracking
	      Log.d("Analytics", String.format(
	          "Notification - PW ID: %d, Message ID: %d, Campaign ID: %d",
	          notificationId, messageId, campaignId
	      ));
	
	      // Store for support/debugging
	      if (notificationId != -1) {
	          saveDiagnosticInfo(notificationId, message.toJson().toString());
	      }
	
	      return false;
	  }
	

Return

Pushwoosh notification ID, or -1 if not available

See also