We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2facf5f commit b36751eCopy full SHA for b36751e
iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m
@@ -105,8 +105,7 @@ + (BOOL)downloadItemAtURL:(NSURL*)url toFile:(NSString *)localPath error:(NSErro
105
NSMutableURLRequest* request = [[NSMutableURLRequest alloc] initWithURL:url];
106
107
DirectDownloadDelegate* delegate = [[DirectDownloadDelegate alloc] initWithFilePath:localPath];
108
- // TODO: Try cleaning up warning with connectionWithRequest
109
- [[NSURLConnection alloc] initWithRequest:request delegate:delegate];
+ [NSURLConnection connectionWithRequest:request delegate:delegate];
110
111
while ([delegate isDone] == NO) {
112
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];
0 commit comments