So I have been able to progress the response / error below:
In the CURL command, the connection string example didn’t include the port number, so I also omitted it. Adding in the custom port number I am using, 1338
in my case, this command:
curl -X POST \
> -H "X-Parse-Application-Id: myappID" \
> -H "X-Parse-Master-Key: mymasterKey" \
> -H "Content-Type: application/json" \
> -d '{
> "where": {
> "deviceType": {
> "$in": [
> "ios"
> ]
> }
> },
> "data": {
> "title": "The Shining",
> "alert": "All work and no play makes Jack a dull boy.",
> "push-type": "background"
> }
> }'\
> http://server.home.local:1338/parse/push
Returns:
{"result":true}
And if I return to the Dashboard, under the Push menu > Past Pushes, I can see all these requests.
However, NONE are actually received on the device!
I have tried some variations in the data
JSON object, including extra parameters that seem to be now be required iOS 13 devices, namely:
-
push-type / push_type / apns-push-type
-
content-available
I think I have tried all combinations, but still no received notification…
Not sure what or where to look now…
What tests and/or logs are available between my Parse server and Apple’s APNS servers?