I am trying to configure the AWS Mobile Hub for APNS. I am having 2 problems that I think are related.
In the Apple Developers Portal I have 2 valid Provisioning Profiles for the app, iOS Development and iOS Distribution (all certificates have expiration dates in the future). When I generate and download the Development Push Certificate, and then look back at the Provisioning Profiles, both profiles are marked as invalid. I can edit the profiles and render them valid again, but they are invalidated when I revoke the Development Push Certificate and create another (I re-create the push certificate because I am not certain it’s valid).
When I try to add push notifications to my AWS Mobile Hub project by uploading a Development Push Certificate (created as above) I get an error:
Invalid parameter: Attributes Reason: Platform credentials are invalid
I have repeated this process several times and the same things always happen. If I revoke and recreate the invalidated Provisioning Profiles, I get the same sequence of events. I have no idea why generating Push Certificates invalidates Provisioning Profiles. Since the Push Certificates upload successfully I assume their formats are correct. I don’t know what parameter in the certificates might be the source of the error.
What is going on?