title: AWS SNS publishing always disables endpoint (invalid token)
body: <p>I'm trying to use a Lambda function to send a notification to an iOS device using SNS, but every time I send it, the status of the endpoint changes to false and an error appears in CloudWatch saying invalid token (below).</p>
  
  <p>I have confirmed that the token is the same one as phone's, and that it is sending to that.  I have also tried to regenerate the certificates 3 times now, and the same error still appears.</p>
  
  <p>CloudWatch error</p>
  
  <pre><code>{
      "status": "FAILURE",
      "notification": {
          "timestamp": "2015-10-20 03:27:46.5",
          "messageId": "id",
          "messageMD5Sum": "sum"
      },
      "delivery": {
          "statusCode": 8,
          "dwellTimeMs": 473,
          "token": "f0b1abebdbc08d4f0c46a7a0620e518af886952c9f8e21e22cff5a5fc5ca5098",
          "attempts": 1,
          "providerResponse": "NotificationErrorResponse(command=8, status=InvalidToken, id=1, cause=null)",
          "destination": "destination endpoint arn"
      }
  }
  </code></pre>