Upload NSURLSesssion becomes invalidated in sharing extension in ios8 with error NSURLErrorDomain Code=-995

前端 未结 1 2073
北荒
北荒 2021-02-07 16:15

I try to upload an image using NSURLSession in shared extension in iOS 8 but have this error instantly after calling

[task resume]         


        
相关标签:
1条回答
  • 2021-02-07 17:13

    @Wisors great! It helped, just need to set

    sessionConfiguration.sharedContainerIdentifier = @“com.me.myapp.containerIdentifier”;
    

    In my case @“com.me.myapp.containerIdentifier” was @"group.mycompany.appname" which was crucial, another identifier didn't work. Thank you!

    0 讨论(0)
提交回复
热议问题