You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the AWS SNS for sending push notifications for iOS and android devices.
Currently I'm working on the android version of my app, and when I try to use the AWS SNS for registering endpoints to my platform application I get :
SignatureDoesNotMatch: Signature expired: 20161010T120646Z is now earlier than 20161010T151154Z (20161010T152654Z - 15 min.)
Now, the iPhone app is almost done, and I didn't get that error when working on the iPhone version.
I'm using the same credentials, meaning, same IAM user which has two policies attached to him.
One for APNS and one for GCM (Firebase).
I use the same Mac to work on both apps, so it's the same time zone. Why it doesn't work, please?
Thanks.
The error occurs here (marked with double stars) :
varparams={PlatformApplicationArn: myapplication,/* required */Token: data.registrationId,/* required */CustomUserData: 'OrUser',Attributes: {Enabled: 'true',}};**sns.createPlatformEndpoint(params,function(err,data)**{if(err){console.log(err,err.stack);// an error occurred}else{console.log(data);// successful responselocalStorage.setItem('EndPointARN',data.EndpointArn);// Store localyregisterDeviceOnServer(localStorage.getItem('registrationId'),localStorage.getItem('EndPointARN'));}});