Closed AntonNguyen closed 2 years ago
You can always use the CustomData
field to add parameters that are not explicitly defined on the type.
aps := &messaging.Aps{
CustomData: map[string]interface{}{
"interruption-level": "active",
}
}
The SDK will serialize the json request correctly.
You can always use the
CustomData
field to add parameters that are not explicitly defined on the type.aps := &messaging.Aps{ CustomData: map[string]interface{}{ "interruption-level": "active", } }
The SDK will serialize the json request correctly.
@hiranya911 You're right. That works. Thanks!
Describe your environment
Describe the problem
With the release of iOS 15, they've added a new value to the payload:
interruption-level
The FCM library at the moment doesn't support this key.