Trying to push a notification with empty aps but seeing error "Received invalid incoming message on topic"
Replies
Sample Payload:
{
"aps" : {
}
}
Might want to search keyword 'invalid' @ TN 2265:
https://developer.apple.com/library/archive/technotes/tn2265/_index.html
Could you show more of the code, where you create the notification.
I'm using Easy APNs Provider tool to push the notification to device.
Sample Payload :
{
"aps" : {
}
}
Connecting to : gateway.sandbox.push.apple.com
OK.
What do you want to test with an empty payload ?
probably, empty payload IS an invalid message.
Did you test with a real payload such as
{
"aps" : {
"test": "test"
}
}
Adding the "Message" or "Content - available" in payload is working as expected but in our scenario it should be empty.
This works with different push topic. Attaching the device logs for working push topic and non-working push topic.
Working with notification coming to device:
2019-04-23 11:17:32 -0700 apsd[83]: <APSCourier: 0x103d07240>: Received message for enabled topic 'com.***.XXXXXX' with payload '{
aps = {
};
}' onInterface: NonCellular for device token: YES with priority (null)
2019-04-23 11:17:32 -0700 apsd[83]: <APSCourier: 0x103d07240>: AWD for PushReceived finished
Non-working with Error :
2019-04-23 11:14:32 -0700 apsd[83]: <APSCourier: 0x103edbb90>: Received message for enabled topic 'com.XXXX.XXXXXXXXX' with payload '{
aps = {
};
}' onInterface: NonCellular for device token: NO with priority 10
Received invalid incoming message on topic com.XXXX.XXXXXXXXXX
Thanks.