如果应用程序处于后台模式,则不会触发任何委托
我刚开始进行 RestKit 开发。我开发了一个应用程序 从服务器获取数据并将这些数据映射到对象中。用一个技巧 静音音乐,是否可以向后端发送请求,如果 应用程序处于后台模式。如果我 离开请求将发送的应用程序,但“完成与 objectmapping”不会抛出,但是如果我启动(激活应用程序) 应用程序,代表 会火。如果应用程序位于,有没有办法映射 json 后台模式?
I am at the beginning with RestKit-development. I develop an app that
get data from a Server and map these in objects. With a trick of
silence music, is it possible to send request to the backend, if the
app is in background mode . If I
leave the app the request will send, but the delegate of "finish with
objectmapping" will not throw, but if I start (activate the app) the
app, the delegates
will fire. Is there are a way, to map the json if the app is in
background mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经对您的另一篇文章提供了答案,我认为这会对您有所帮助。请参阅链接:
您的其他帖子
I've provided an answer to your other post which I think will help you here. See link:
Your other post
是的,如果您将应用程序配置为具有播放音乐和音频的后台模式,同时您希望应用程序继续运行。如果您实际上不想播放音乐,只要您不想通过 App Store 分发它,您就可以使用无声音频文件,但 Apple 不会批准将其用于 App Store,除非有实际的音乐作为您的应用程序中的实际功能。
Yes, if you configure your application to have a background mode that plays music and play audio while you want your application to continue to run. You can use a silent audio file if you don't actually want to play music so long as you don't want to distribute it through the App Store, but Apple will not approve it for the App Store unless there is actual music as an actual feature in your application.