如何将数据推送到 iPhone 应用程序? [英] How to push data to an iphone app?

查看:65
本文介绍了如何将数据推送到 iPhone 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 iphone 应用程序开发的新手,我无法弄清楚如何将数据推送到应用程序.具体来说,我试图找到一种方法将新数据(用户帖子)从服务器推送到应用程序,而无需用户刷新(下拉刷新).有可能吗?

I'm new to iphone app development and I'm having trouble figuring out how to push data to the app. Specifically, I am trying to find a way to push new data (user posts) from the server to the app without the user having to refresh (pull down to refresh). Is is possible?

推荐答案

有一个封闭的解决方案

使用 Apple 推送通知服务:它允许您发送带有消息和按钮的警报,如果您愿意,用户可以打开应用程序,它还可以在您的应用程序图标上添加一个编号徽章(想想 whatsapp, 邮件).

use Apple Push Notification service : it will allow you to send an alert with a message and a button for the user to open the app if you want, it can also add a numbered badge to the icon of your app (think whatsapp, mail).

这是一个解释如何使用它的链接http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

here's a link explaining how to use it http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

这是你能得到的最接近的,如果用户没有打开应用程序,你就不能对 iphone 做任何事情

That's the closest you can get, you can't do anything with the iphone if the app is not opened by the user

这篇关于如何将数据推送到 iPhone 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆