wireapp/wire-server

ServiceError from SNS while trying to set up real AWS

obstenu opened this issue · 1 comments

Describe the bug
I am trying to set up my private Wire server to work with real AWS services. I have configured SNS to work with APNS, but Apple PUSH notifications doesn't seem to be working. I have enabled debug logging on Gundeck, and when I'm logging in on my iOS client it says the following:

_1:I,7:request,1:=,32:208a59f0afa2bbd59ab4f960eee366ea,4:user,1:=,36:8d340e9c-9eaa-4f56-b782-14821bcd1322,5:token,1:=,16:dc1c94dd6c13229a,22:Registering push token,

1:D,6:logger,1:=,11:aws.gundeck,202:[ServiceError] { service = SNS status = 404 Not Found code = NotFound message = Just PlatformApplication does not exist request-id = Just f4d15259-c343-5882-a9f4-05cb824d6b6f },_

To Reproduce
Steps to reproduce the behavior:

  1. Change credentials in Gundeck configuration section to yours
  2. Enable Gundeck Debug Logs
  3. Run iOS Wire app which connects to your server
  4. See error

Update: To avoid the situation mentioned above, you should do the following:

  1. In gundeck configuration, set the arnEnv variable to something (e.g. test)
  2. Name your Platform Application on AWS like test-your.bundle.id (for APNS) or test-1234567890 (for FCM, where 1234567890 is your Firebase Cloud Messaging Sender ID)
  3. Enjoy!