No Request will send if app is in background mode Optionen

不羁岁月 提交于 2019-12-12 06:01:41

问题


With a trick it is possible to run the app, if the home button is pressed. In the background mode, no request with RKRequestQueue will be send, so the app receive no response from backande server and the app can't update the data.


回答1:


This is standard behavior. When the app becomes active (i.e. is running and no longer in the background), you may want to implement the -(void)applicationDidBecomeActive:(UIAplication *)application method in your application delegate which would resume where you left off, or to resubmit your request, restart your request queue, whatever your situation requires.



来源:https://stackoverflow.com/questions/8519664/no-request-will-send-if-app-is-in-background-mode-optionen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!