-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making push notifications work #49
Comments
Hej! Ideally the platform creation should be wired up in the SNAAS Console together with the other admin tasks, which is doable but currently not planned due to time constraints. If done tho, it would allow to create platforms per app for android, ios and ios sandbox and it shouldn't require to touch AWS at all besides a successful terraform run. You have couple of options here:
Let me know if I can be of help with going further, or something is still unclear. Of course always happy to welcome contributions in form of PRs or documentation. |
Hi again,
Returns:
Still it seems no messages are delivered. Again, I'm not that familiar with SNS, but I have enabled logging to cloudwatch. Something else I need to be aware of? Thanks again. |
Hej @thomasorten how did go about the cert and private key of the app? Before you can configure SNS properly you need to setup those for your iOS app. The response indicates that the creds you passed to SNS couldn't be used when communicating to APNS (from SNS). |
Ah, ok. Basically passed the data from the console like such:
What should be the correct response? |
The application is created, but there appears no connections to the platform endpoint is made. Devices are registered in the DB. |
My answer was confusing. The response indicates that the platform was created, in order for it to be picked up by SIMS it needs to be activated. A bool that can be flipped in the DB. |
Ok I'll try that, thanks. |
Still trying to figure this out.. Must be something I'm missing.. Applications are set as production=true in DB. When I publish a post, nothing appears in the SQS queue (object-state-change*). I can create applications through PlatformCreate, and they do appear with certificates. In DB, endpoint_arn under "devices" table of the app is empty. |
Hi!
I'm trying to make push notifications work on the backend.
I see functions PlatformCreate in http/platform.go and core/platform.go, which takes an app, cert and key.
But I don't see these being called from anywhere. Would calling PlatformCreate e.g. on app creation create the necessary endpoints for SNS? Upon using terraform to set up the project with aws, I see a topic endpoint-state-change, but no platforms/applications in SNS. Or would there be a manual way of adding a platform and connections through the AWS console (not so familiar with sns)?
The text was updated successfully, but these errors were encountered: