# SNS Mobile Push Notifications

**URL:** <https://forum.serverless.com/t/sns-mobile-push-notifications/8665>\
**Category:** Serverless Framework\
**Created:** [June 29, 2019, 3:44pm UTC](https://forum.serverless.com/t/sns-mobile-push-notifications/8665 "2019-06-29T15:44:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schystz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/schystz/32/3444_2.png) [@schystz](https://forum.serverless.com/u/schystz)\
**Post date:** [June 29, 2019, 3:44pm UTC](https://forum.serverless.com/t/sns-mobile-push-notifications/8665/1 "2019-06-29T15:44:02Z")

</div>

Hello folks, I can’t seem to find any documentation or past discussions on how can I create a platform application for SNS Mobile push notifications. I did found some code examples online about how to create a topic, subscribe a lambda function to it and publishing the message - but this is not very useful in my use case since I want to send the message to a specific mobile endpoint (or device) only. Can you please point me on the right direction on how to proceed further?

AWS SNS (Mobile Push) doc:  
[https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-application-as-subscriber.html](https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-application-as-subscriber.html)  
Serverless SNS code examples:

> **[DavidWells/serverless-workshop](https://github.com/DavidWells/serverless-workshop/tree/master/lessons-code-complete/events/sns)**
>
> ⚡️ Open source serverless workshop. Ready to deploy serverless examples on AWS - DavidWells/serverless-workshop

  
Code example for lambda mobile push but not using serverless:  

> **[Creating Push notification job with SNS, Lambda and Node.js](https://medium.com/@todd_10692/creating-push-notification-job-with-sns-lambda-and-node-js-3fcf3903e205)**
>
> In order to increase our engagement we decided to implement a set of push notifications to help bring users back into our app. Up until…

---

<div class="post-metadata">

**Author:** ![schystz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/schystz/32/3444_2.png) [@schystz](https://forum.serverless.com/u/schystz)\
**Post date:** [June 29, 2019, 4:01pm UTC](https://forum.serverless.com/t/sns-mobile-push-notifications/8665/2 "2019-06-29T16:01:11Z")

</div>

Looks like it is not possible to write a cloud formation template for SNS Platform Application currently so that’s why it is not supported in serverless.

> <https://stackoverflow.com/questions/46545807/creating-sns-platform-application-with-aws-cloudformation>

Looks like I have to manually create the application which is kind of a bummer, as I was pretty enthusiastic with deploying everything in just a single command.

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [July 7, 2019, 12:51pm UTC](https://forum.serverless.com/t/sns-mobile-push-notifications/8665/3 "2019-07-07T12:51:43Z")

</div>

It doesn’t really help you but I can confirm we had to create the platform application manually (once for each platform) then we could deploy everything else with Serverless.

---

<div class="post-metadata">

**Author:** ![schystz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/schystz/32/3444_2.png) [@schystz](https://forum.serverless.com/u/schystz)\
**Post date:** [July 8, 2019, 1:13am UTC](https://forum.serverless.com/t/sns-mobile-push-notifications/8665/4 "2019-07-08T01:13:43Z")

</div>

Thank you for sharing! I had to do the same and it seems to work so far 🙂
