0
votes

I have two devices (my colleague's and mine). He is in Chicago and I am here in DC. Both are not connected to any computer. When I send a push from Parse's remote push ( https://www.parse.com/apps/"your app name here "/push_notifications ), only my device receives the notification.

When I select to send to ALL devices, only my device receives the notification.

When I select to send only to his device, it says it will be sent to ONE device:

enter image description here
He does not receive the notification and in the Push status window, it says "Pushes Sent - 0".
enter image description here

I know Parse recognizes his user pointer because if you enter an invalid user pointer, you "will be sent to 0 devices"

invalid user pointer

We both are working on the same build and have the exact same code. Are there potentially different settings outside of the project? Yes, he has authorized notifications for the app.

Also, additional verification: Here is a screenshot of my user table.
enter image description here

And here is the related row in the Installation table:

enter image description here

Parse's condition recognizes his device:

enter image description here

1
Do you see his installation in the parse db? - Christian
Maybe he receives it but doesn't see it. Has he checked the Notification Center? - Christian
Asking about notification center. I just checked the Installation table and he does have a row. - lostinthebits
Because if it says, it is sent to one device, if you choose his installation, it should work. - Christian
The push count when sent to his device = 0. But as you can see from the images I just uploaded he has an installation row that matches his user objectId. - lostinthebits

1 Answers

2
votes

I had the same issue a long time ago. The cause of that could be non-valid/corrupt deviceTokens.

It helped In my case to uninstall the app and to delete the corrupt installation from the Parse database. Then I've had to re-install the app on the device again. That way a new devicetoken gets generated and a new installation gets added to the parse database.