当应用程序处于后台状态时,我试图上传文件、图像和视频,以便在iOS Swift中拥有云服务器。自己的云库可以通过操作系统开始上传,这样即使在应用程序被杀死时也会进行上传,但在后台状态下,它甚至不能正常工作。我不知道如何使上传发生时,应用程序是在后台。
// Its used to upload the file to ownCloud
func uploadFileMedia(uploadPath: String, localPath: String){
Async.background(){
AppDelegate.sharedOCCom
我这里有个问题,我真的不知道怎么解决。
我使用此代码发送推送通知:
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
if(alertView == self.alert){
if (buttonIndex == 1){
// IF accepted was pressed, sent a notification to the requester
NSMutableDictionary *params =