Invalid parameter: Attributes Reason: You provided a certificate of type SANDBOX, which cannot be used to create an application of type iOS Production. Please select an application of type SANDBOX or provide a certificate of type iOS Production (Service: AmazonSNS; Status Code: 400; Error Code: InvalidParameter; Request ID: f5f810fd-7f8e-5462-9ff1-40f586dbe4ec)I am using certificate of type sandbox (dev) not iOS production.
AWS Mobile Hub has simplified the configuration process for the iOS Push Notifications feature. For the iOS platform, we have removed the iOS Dev (Sandbox) option in favor of supporting the Universal Apple Certificate. This new (as of December 17, 2015) Apple Push Notification service SSL client certificate supports both Sandbox & Production environments and therefore only one certificate is needed for the lifecycle of your iOS application.
You will need to generate a new Universal Apple Certificate via the Apple Developer Portal, then upload a .p12 of this certificate when configuring the iOS Push Notification Mobile Hub feature.
Once you upload the new certificate and save changes, Mobile Hub creates an SNS Apple Production Platform Application resource on your behalf. Any registered device running the Mobile Hub sample application.
Once caveat to be aware of when testing development and production:
Since Mobile Hub is creating an SNS Apple Production Platform Application, the mobile application must be built using the Ad Hoc Distribution or App Store Distribution provisioning profiles for push notifications to work. We are planning to change this in the future and default to creating an Apple Development (SANDBOX) Platform Application using the same .p12 certificate. If you are testing in development (using the development provisioning profile to build your app) then you'll need to make a few modifications.