firebase / firebase/firebase-ios-sdk

Completion closure on putData to upload a file to Firebase Storage is never called

Open
#5,295 8 comments 0 reactions 0 assignees View on GitHub
api: storage type: feature request
Dominant language
C++
Stars
6.7k
Forks
1.8k
Avg merge
2d 18h
Merged PRs (30d)
75

Description

### Step 0: Are you in the right place?

* For issues or feature requests related to __the code in this repository__
file a Github issue.
* If this is a __feature request__ please use the Feature Request template.
* For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)
with the `firebase` tag.
* For general (non-iOS) Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)
google group.
* For backend issues, console issues, and other non-SDK help that does not fall under one
of the above categories, reach out to
[Firebase Support](https://firebase.google.com/support/).
* Once you've read this section and determined that your issue is appropriate for
this repository, please delete this section.

### [REQUIRED] Step 1: Describe your environment

* Xcode version: 11.0
* Firebase SDK version: Latest
* Firebase Component: Storage
* Component version: Latest
* Installation method: CocoaPods

### [REQUIRED] Step 2: Describe the problem

When running a `putData` method in an iPhone without any internet connection it never calls the completion callback.

When monitoring the progress/status of an upload task it never gets called too, i.e. we as developers will get stuck and won't get any response from the Firebase SDK when trying to upload a file without internet connection. We can't just show a connection error for our users because we don't get notified when it does happen, and the "completion" that should be called even when there's an error doesn't get called.

#### Steps to reproduce:

Just try to upload a file without any internet connection.

#### Relevant Code:

No need.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.