push notification trigger from Adobe campaign classic 7 but not receive on android app in background/killed | Community
Skip to main content
March 3, 2023
Solved

push notification trigger from Adobe campaign classic 7 but not receive on android app in background/killed

  • March 3, 2023
  • 1 reply
  • 1990 views

hii all,

 

We try to send push notification on android device .

when send push notification  and app is open or foreground we able to receive notification 

but when app is in background or kill in mode we not able to receive notification 

 

can any one help me to set notification priority on delivery level to high 

we using acc7 

on app side we getting this error 

Error on Mobile App side-

Background messages only work if the message priority is set to 'high'

 

Regard,

NB

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by akshaaga

@navinbamane ,

To set the priority of push notifications to high, you need to modify the message payload sent from Adobe Campaign. Here are the steps:

  1. Open Adobe Campaign Classic 7 and navigate to the push notification delivery.

  2. In the Delivery wizard, go to the 'Content' section and click on the 'Advanced' tab.

  3. In the 'Advanced' tab, you will see a section called 'Message Priority'. Select 'High' as the message priority.

  4. Save and publish the delivery.

 As a result, the notifications should be delivered to the user's device even if the app is in the background or killed.

However, please note that some devices may have different requirements for how to handle push notifications in the background or when the app is killed.

1 reply

akshaaga
Adobe Employee
akshaagaAdobe EmployeeAccepted solution
Adobe Employee
March 3, 2023

@navinbamane ,

To set the priority of push notifications to high, you need to modify the message payload sent from Adobe Campaign. Here are the steps:

  1. Open Adobe Campaign Classic 7 and navigate to the push notification delivery.

  2. In the Delivery wizard, go to the 'Content' section and click on the 'Advanced' tab.

  3. In the 'Advanced' tab, you will see a section called 'Message Priority'. Select 'High' as the message priority.

  4. Save and publish the delivery.

 As a result, the notifications should be delivered to the user's device even if the app is in the background or killed.

However, please note that some devices may have different requirements for how to handle push notifications in the background or when the app is killed.

March 3, 2023

hii akshaaga,

 

but on delivery i have this option 

there is no section call 'Message Priority

 

Regards

NB

akshaaga
Adobe Employee
Adobe Employee
March 3, 2023

@navinbamane ,

If you are not able to find the "Message Priority" option in Adobe Campaign Classic, you can try setting the priority to high using a custom payload.

Here's an example of how you can set the priority to high in a custom payload:

{

  "aps": {

    "alert": {

      "title": "Your notification title",

      "body": "Your notification message"

    },

    "content-available": 1

  },

  "priority": 10

}

In the above example, the priority field is set to 10, which is the value for high priority. Additionally, the content-available field is set to 1, which indicates that the notification should be delivered even if the app is in the background or killed.

You can use this custom payload while sending the push notification from Adobe Campaign Classic. You may also need to configure your app to handle the custom payload and display the notification accordingly.