FirebaseExtended / cocos2dx-cpp-sample

Firebase Cocos2d-x samples
http://firebase.google.com/games
MIT License
53 stars 25 forks source link

Issue with the file download from firebase cloud storage #15

Closed aslamca closed 6 years ago

aslamca commented 6 years ago

Hi,

I am trying to download a file to local storage on ios. Download completes 100% but unable to save it in local storage.

std::string filePath = FileUtils::getInstance()->getWritablePath() + "cuts.zip"; // path used for storing get_bytesfuture = reference.GetFile(filePath.cstr(), &this->listener);

Getting an error "The file couldn’t be opened because the specified URL type isn’t supported."

Could you please help me to solve this?

aslamca commented 6 years ago

Hi,

It is working after adding a prefix "file://" to the file path.

Thanks,