Skip to content

content-available: 1 is not attached to a transactional message #113

@miguelespinoza

Description

@miguelespinoza

I'm working with an Expo mobile project, in which I'm trying to listen to background notifications.
I managed to get it working through the customer.io transactional dashboard, using this custom payload:

{
  "aps": {
    "alert": {
      "title": "Customer.io push from dashboard",
      "body": "with content-available: 1"
    },
    "mutable-content": 1,
    "content-available": 1,
    "sound": "default"
  }
}

When I try with the ruby gem using custom_payload on the request body, I get none of the background listeners to execute, but I get the push notification. I suspect "content-available": 1 is not getting carried over to the transactional message payload

request = Customerio::SendPushRequest.new(
   ....
   custom_payload: {
      ios: {
          aps: {
             "content-available": 1
          },
      },
   },
)

Any pointers would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions