wordpress-mobile / gutenberg-mobile

Mobile version of Gutenberg - native iOS and Android
GNU General Public License v2.0
259 stars 58 forks source link

Unable to add/upload images if `Don't keep activities` is ON #582

Open daniloercoli opened 5 years ago

daniloercoli commented 5 years ago

Image uploading isn't work fine on Android if Don't keep activities is turned ON.

To reproduce this problem

(Not sure if the upload is going on under the hood or not).

hypest commented 5 years ago
  • Add an Image block

Just making sure, is this a Gutenberg only issue or does it happen in Aztec too @daniloercoli ?

daniloercoli commented 5 years ago

It does work without any problem on Aztec. (Tested on alpha-150 - versionCode 674)

SergioEstevao commented 4 years ago

@mchowning is this still happening on Android?

mchowning commented 4 years ago

I am still seeing this issue, although it presents slightly differently now. After selecting to upload the image, I see the in progress upload icon in the notification bar and the upload does complete successfully, but the image block never gets updated and still has the image placeholder.

SiobhyB commented 2 years ago

Noting that I'm going to be taking a dive into this issue. :)

I'm still seeing the same behaviour that Matt detailed with Don't keep activities enabled. You'll see from the following video that the the Image block isn't correctly updated although the uploaded image is correctly added to the site's Media Library:

https://user-images.githubusercontent.com/2998162/152796017-a31511da-1283-45d2-adaa-88f10d5128b7.mov

The above video comes from testing on the latest alpha-341 on a Pixel 4XL emulator. I also confirmed the same behaviour on a physical Pixel 5 on version 19.1 of the app.

Related issues:

SiobhyB commented 2 years ago

I chatted with @hypest about this issue a bit yesterday, he let me know that the fix for this issue is likely not simple, possibly requiring larger architectural considerations that are a bit beyond the scope of what we're currently trying to achieve. I time-boxed some explorations and confirmed I wasn't able to make progress on a fix. Given that, and the fact this issue isn't impacting a large number of users, I'm un-assigning myself for now.

While researching this issue, I came across this work from other developers that may be helpful for people looking into this in the future:

mchowning commented 2 years ago

In my testing, with Don't keep activities enabled, any time I attempt to insert an image (whether it is an uploaded image, or from the media gallery), the post fails to actually update with the inserted image (i.e., the block remains empty), so this appears to be a broader issue.