I tried to create an ad hoc build to test push notification in production certificate. While creating ipa file, I cannot install it via iTunes and had to load ipa using xcode. I'm using Houston to test it in command line, it prompts that push notification is sent but notification is not received.
Furthermore, I tried making a testflight build. Build is created and uploaded successfully but installed app has same problem i.e. push notification is not received. I searched this problem online and came across this thread https://forums.developer.apple.com/thread/110438 but no conclusive answer is given there. Is anyone facing the same problem? Has anybody found a solution?
Try cleaning the build and restart XCode and try to re login the apple id in your XCode account preferences.
screenshot