ios - Automated Push Notification Testing with XCTest -
i'm attempting automate testing of push notifications using xctest , continuous integration xcode server.
as far can tell, have correctly configured push notifications, receive them correctly when app running. issue is, when run test (even on physical device) don't receive notification. have confirmed on both sending device backend push notification has been sent. far know, cannot receive push notifications on ios simulators, running test on actual device, assuming different.
obviously can check manually see if information consistent through sending device, backend , receiving device, hoping automate entire process.
thanks help.
while there no way deal pns on simulator apple-provided instruments, there magic 3-rd party toolset on it:
https://github.com/acoomans/simulatorremotenotifications
simulatorremotenotifications library send mock remote notifications ios simulator.
the library extends uiapplication embedding mini server listen udp packets containing json-formated payload, , service send notifications mini server.
this project includes ios simulator notifications macosx app send mock notifications.
Comments
Post a Comment