Maybe this is not supported by AWS, however, when creating a certification on Apple Developer Console I chose "Apple Push Notification service SSL (Sandbox & Production)". I used this certification to set up an SNS. If I check the "Used for development in sandbox" checkbox, the notifications will work when compiling the app via XCODE but not via testflight, if I use this certification and I uncheck this checkbox the notifications will work from testflight but from XCODE.
I was under the impression that this new type of certification can be used in development and production, so I'm little bit confused. It seems like AWS knows if my app is compiled for development or production.
Is there a way to set up one SNS for development and production on iOS?