まえがき 最近iPhoneアプリのプッシュ通知を色々と試しているのですが、今回はAWSのサービスの一つであるAmazonSNS(Amazon Simple Notifier Service)を使ってみました。 サーバーサイドからAWSのAPIを叩いてプッシュできるようにすると色々やりたいことができるので、簡単例をメモシておこうと思う。 事前準備・検証環境 事前準備としては、あたりまえだけど、AWSのアカウントと取って、AmazonSNSをアクティブにしておく必要がある。あと、AmazonSNSのアプリケーションも作成しておく。 あと、APIを叩くのにアクセスキーとシークレットキーが必要になるので取得しておく。 今回試してみた環境は OS MacOSX Ruby 2.1 aws-sdk 1.32.0 通知先クライアント iPhone 必要なGemをインストール 必要なGemというか『aws-