function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Payal Lodhi 16Payal Lodhi 16 

salesforce push notification is not working when app is close

I  am using salesforce push notification for android device and (without the Salesforce Mobile SDK). Since payload structure of salesforce push notification is change.

{message : {data : JSON, from : String, messageId : String, ttl : Int}}

I am using local notification to show the notification banner on android device but it is not working when app is closed. 

Please let me how to resolve this. How can I show notification banne without localnotification 
Or is there a way to change the payload structure of the  Salesforce PushNotification class to like this 

{message :

   {notification : JSON, from : String, messageId : String, ttl : Int},
   {data: JSON},

}