简体   繁体   English

如何将AWS SNS服务集成到IOS APP中?

[英]How to integrate AWS SNS services into IOS APP?

I want to use AWS SNS services to send push notifications from server to IOS App. 我想使用AWS SNS服务将推送通知从服务器发送到IOS App。 What are the steps i need to follow to integrate the SDK in the app and at the same time at the server side.I have read almost all the documentation and samples available in Github. 将SDK集成到应用程序中以及同时在服务器端时,需要执行哪些步骤。我已经阅读了Github中几乎所有可用的文档和示例。 But i see some files are missing in the samples like AWSRuntime.h,AWSSNS.h, i am not sure where to find. 但是我发现示例文件中缺少某些文件,例如AWSRuntime.h,AWSSNS.h,我不确定在哪里可以找到。

A small tutorial with sample would be really helpful. 一个带有示例的小教程将非常有帮助。

Thanks in Advance. 提前致谢。

Have you tried the tutorial on the AWS site for integrating mobile push notifications with AWS SNS? 您是否曾在AWS网站上尝试过将移动推送通知与AWS SNS集成的教程? It has an option for APNS. 它有一个APNS选项。 I wasted a lot of time with the certificate stuff though. 不过,我在证书上浪费了很多时间。 Through trail and error I learned that you must make sure that if you are using development credentials that you use APNS_SANDBOX as your platform, and if you are using the production credentials make sure to use APNS platform. 通过反复试验,我了解到,如果使用的是开发凭据,则必须确保使用APNS_SANDBOX作为平台,如果使用的是生产凭据,则必须确保使用APNS平台。

http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html

I am actually working through it at the moment. 目前,我实际上正在努力。 Good luck. 祝好运。 I would love to hear if you get it working, I did get it to successfully use my credentials and send messages to my ios app via AWS Management Console, but the tutorial has yet to work. 我很想听听您是否可以使用它,但确实可以成功使用它来通过AWS管理控制台使用我的凭据并将消息发送到ios应用程序,但是该教程尚未奏效。

我认为您不需要在您的IOS应用中集成AWS SNS,因为SNS是服务器到服务器的集成,但是您在IOS应用方面需要做的就是让APNS令牌将其传递到您的后端,然后调用SNS api来创建createEndPoint

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM