title: Using SNS to send push notifications - Expo App
body: <p>I am creating an Expo app that will use push notifications. I do not want to use Expo's server for that and instead I want to use AWS SNS. This is what I have done:</p>
  <ol>
  <li>Created the app in Firebase and obtained the API Key.</li>
  <li>Created the platform application on SNS using the API key obtained in step 1.</li>
  <li>Used expo to obtained the device token.</li>
  <li>Created an endpoint on SNS in the application created in step 2.</li>
  </ol>
  <p>When I try to send a push notification, it doesn't work. I tried:</p>
  <ul>
  <li>I made sure that use .getDevicePushTokenAsync() instead of getExpoPushTokenAsync() to get the device token that can be used with SNS.</li>
  <li>When I test the app on my Android device I am able to console.log the device token (which is what I use to add the endpoint mentioned in step 4 above. Still nothing :(</li>
  <li>I built a stand alone app, downloaded the .apk file, installed it on my device, BUT NOW THE PUSH TOKEN IS NOT BEING RETRIEVED. I really do not know why after building the app and installing it on my device this doesn't work anymore. It returns</li>
  </ul>
  <p>I am thinking that if I am able to build the app and obtain the device token I may be able to make it work, but no luck. Any idea on what I am doing wrong or what I am supposed to be doing?</p>