I am trying to automate testing of my push notifications using XCTest and Continuous Integration with Xcode Server.
As far as I can tell, I set up my push notifications correctly, as I receive them correctly when the application is running. The problem is that when I run the test (even on a physical device), I do not receive a notification. I confirmed both on the sending device and on the backend, which was sent by push notification. As far as I know, you cannot receive push notifications on iOS simulators, but I run the test on a real device, so I assumed that it would be different.
Obviously, I can check manually to see if the information is compatible through the sending device, backend, and receiving device, but I was hoping to automate the whole process.
Thanks for the help.
source share