Hi. When I download the image with SDWebImageManager, it is downloaded a picture which has 0 px.
These are my functions :
static func loginWithGoogle(googleUser: GIDGoogleUser!) {
let fieldsMapping = [“primaryEmail”:“email”, “name”:“name”, “phone”:“phone”, “addressLocality”:“city”]
Backendless.sharedInstance().userService.loginWithGoogleSignInSDK(googleUser.authentication.idToken, accessToken: googleUser.authentication.accessToken, permissions: nil, fieldsMapping: fieldsMapping, response: { (theUser) -> Void in
let picturePath = “https://picasaweb.google.com/(googleUser.userID)”
Backendless.sharedInstance().userService.currentUser.setProperty(“profilePicture”, object: picturePath)
Utils.handleUser(theUser)
}) { (error) -> Void in
print(error.message)
}
}
the download function :
SDWebImageManager.sharedManager().downloadImageWithURL(NSURL(string: imagePath), options: SDWebImageOptions.ProgressiveDownload, progress: nil, completed: { (image, error, theCacheType, completed, theUrl) -> Void in
if completed {
if error == nil {
SDImageCache.sharedImageCache().storeImage(image, forKey: userId)
} else {
Utils.displayAlertController(self, title: “Error!”, message: “There was an error on retrieving your profile picture: (error.localizedDescription)”, cancelButtonTitle: “Dismiss”)
}
}
})
For example, here is a link with the profile picture retrieved from a user : https://picasaweb.google.com/106737604090228505026