payload: {"action":"created","issue":{"url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/85","repository_url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager","labels_url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/85/comments","events_url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/85/events","html_url":"https://github.com/mzeeshanid/MZDownloadManager/issues/85","id":417247035,"node_id":"MDU6SXNzdWU0MTcyNDcwMzU=","number":85,"title":"Issue on MZDownloadManager.swift isValidResumeData line 156","user":{"login":"7snalbar","id":24737691,"node_id":"MDQ6VXNlcjI0NzM3Njkx","avatar_url":"https://avatars2.githubusercontent.com/u/24737691?v=4","gravatar_id":"","url":"https://api.github.com/users/7snalbar","html_url":"https://github.com/7snalbar","followers_url":"https://api.github.com/users/7snalbar/followers","following_url":"https://api.github.com/users/7snalbar/following{/other_user}","gists_url":"https://api.github.com/users/7snalbar/gists{/gist_id}","starred_url":"https://api.github.com/users/7snalbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7snalbar/subscriptions","organizations_url":"https://api.github.com/users/7snalbar/orgs","repos_url":"https://api.github.com/users/7snalbar/repos","events_url":"https://api.github.com/users/7snalbar/events{/privacy}","received_events_url":"https://api.github.com/users/7snalbar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2019-03-05T11:17:33Z","updated_at":"2019-08-19T08:04:16Z","closed_at":null,"author_association":"NONE","body":"The reason for the crash or the scenario that this crash is caused is not clear for now. I will be attaching the crash report from Firebase Crashlytics and let's hope someone faced the same issue and may provide either a scenario for this crash to be triggered so I can debug it and the have a solution for it. \r\n<img width=\"1138\" alt=\"screen shot 2019-03-05 at 14 15 28\" src=\"https://user-images.githubusercontent.com/24737691/53801845-4db32e00-3f51-11e9-8b9a-d486c2b6c327.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/comments/522459215","html_url":"https://github.com/mzeeshanid/MZDownloadManager/issues/85#issuecomment-522459215","issue_url":"https://api.github.com/repos/mzeeshanid/MZDownloadManager/issues/85","id":522459215,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMjQ1OTIxNQ==","user":{"login":"Harshad290194","id":17276435,"node_id":"MDQ6VXNlcjE3Mjc2NDM1","avatar_url":"https://avatars2.githubusercontent.com/u/17276435?v=4","gravatar_id":"","url":"https://api.github.com/users/Harshad290194","html_url":"https://github.com/Harshad290194","followers_url":"https://api.github.com/users/Harshad290194/followers","following_url":"https://api.github.com/users/Harshad290194/following{/other_user}","gists_url":"https://api.github.com/users/Harshad290194/gists{/gist_id}","starred_url":"https://api.github.com/users/Harshad290194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harshad290194/subscriptions","organizations_url":"https://api.github.com/users/Harshad290194/orgs","repos_url":"https://api.github.com/users/Harshad290194/repos","events_url":"https://api.github.com/users/Harshad290194/events{/privacy}","received_events_url":"https://api.github.com/users/Harshad290194/received_events","type":"User","site_admin":false},"created_at":"2019-08-19T08:04:16Z","updated_at":"2019-08-19T08:04:16Z","author_association":"NONE","body":"We already solve this issue.. Thank you so much for your reply\n\nOn Mon, 19 Aug 2019 at 1:01 PM, Duc Nguyen <notifications@github.com> wrote:\n\n> Try this:\n>\n> fileprivate func isValidResumeData(_ resumeData: Data?) -> Bool {\n>\n>         guard resumeData != nil || resumeData?.count > 0 else {\n>             return false\n>         }\n>\n>         do {\n>             var resumeDictionary : AnyObject!\n>             resumeDictionary = try PropertyListSerialization.propertyList(from: resumeData!, options: PropertyListSerialization.MutabilityOptions(), format: nil) as AnyObject?\n>             var localFilePath = (resumeDictionary?[\"NSURLSessionResumeInfoLocalPath\"] as? String)\n>\n>             if localFilePath == nil || localFilePath?.count < 1 {\n>                 localFilePath = (NSTemporaryDirectory() as String) + (resumeDictionary[\"NSURLSessionResumeInfoTempFileName\"] as! String)\n>             }\n>\n>             let fileManager : FileManager! = FileManager.default\n>             debugPrint(\"resume data file exists: \\(fileManager.fileExists(atPath: localFilePath! as String))\")\n>             return fileManager.fileExists(atPath: localFilePath! as String)\n>         } catch let error as NSError {\n>             debugPrint(\"resume data is nil: \\(error)\")\n>             return false\n>         }\n>     }\n>\n> Although, when resuming the download after quitting the app, the download\n> fails and causes new downloads to fail as well. Reply if you find a fix to\n> this issue.\n>\n> Someone can let me know. Does it work?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/mzeeshanid/MZDownloadManager/issues/85?email_source=notifications&email_token=AEDZ4E4OAFPKCWNBJ4PG54LQFJD47A5CNFSM4G3ZPN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4R66SY#issuecomment-522448715>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AEDZ4E77QWOQRXVJVG2VX23QFJD47ANCNFSM4G3ZPN6Q>\n> .\n>\n"}}
other: {"actor":{"display_login":"Harshad290194"}}