如何使用我的iOS应用程序向用户发送应用程序内公告? [英] How to send in-app announcements to people using my iOS app?

查看:89
本文介绍了如何使用我的iOS应用程序向用户发送应用程序内公告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Apple App Store上有几个应用程序,并希望能够随时向用户发送通知。基本上,我想远程更改 IUAlertview 的文本,并且只有在我想要它时才触发它(在应用程序打开时,只有在我更新了消息时)。 / p>

到目前为止,我可以在应用程序打开时显示 IUAlertview ,我可以轻松编程 NSUserDefault 标志只在某些情况下出现 IUAlertview ,但实在不知道如何动态更改 UIAlertview 文字,无需继续将我的应用程序重新提交给Apple。



有人可以解释一下这是怎么做的吗?谢谢!

解决方案

执行此操作的一种方法是定期(或每次启动时)让您的应用检查网站上的文件您可以控制并且如果有更改的文本(或版本号,或者比上次显示警报时更新的日期),则在UIAlertView中显示已更改的文本。


I have a couple apps on the Apple App Store and would like some way to send announcements to users whenever I want. Basically, I want to remotely change the text of an IUAlertview and only trigger it to appear if I want it to (upon app opening and only if I updated the message).

So far I have no problem making the IUAlertview appear on when the app opens, and I can easily program an NSUserDefault flag to only make the IUAlertview appear under certain circumstances, but really have no idea how to dynamically change the UIAlertview text without resubmitting my app to Apple continuously.

Can someone please explain how this is done? Thanks!

解决方案

One way to do this is to have your app periodically (or upon each launch) check a file on a website that you control and if there is changed text (or a version number, or newer date than the last time an alert was displayed) there, then display that changed text in your UIAlertView.

这篇关于如何使用我的iOS应用程序向用户发送应用程序内公告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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