Question

I have implemented APNS code in my app. It was working fine in Development build.

While in production build, Device token is entered in database at server side, but none of the device is getting push notification.

At server side, in PHP code, feedback response is 149,

I know this table,

0 - No errors encountered

1 - Processing error

2 - Missing device token

3 - Missing topic

4 - Missing payload

5 - Invalid token size

6 - Invalid topic size

7 - Invalid payload size

8 - Invalid token

255 - None (unknown)

But how to read 149 in this table???? Which entity to compare? I am sending content along with message, so it should not be "4 - Missing payload".

Was it helpful?

Solution 2

It was some error from server side. It's working perfectly now without changing anything in code. :)

OTHER TIPS

Did you use also the production Server from apple with you PHP - Script? Production server: - gateway.push.apple.com 2195 instead of development server - gateway.sandbox.push.apple.com 2195

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top