There are issues with the camera option in several places within the app, but I included them all in this issue since they all relate to the same underlying problem with the new media picker.
With the new media picker, when I am using the hybrid editor changing my site icon or Gravatar, I expect to see a camera option so I can take a photo or video from within the app. I expect to have that photo automatically added to the my post or be selected for the site icon/Gravatar, or at least be able to see that photo in the picker so I can select it.
The camera option in the media picker doesn't work from all album views:
Gravatar flow:
Result: You are taken back to the Selfie album but the new photo doesn't appear.
Media Library flow:
Result: You see the photo details as if it had been uploaded to your site's media library, but the options at the top of the screen (Cancel/Save) aren't the expected ones. Tapping "Cancel" doesn't do anything and tapping "Save" results in the error "Unable to save media item." If you check your media library from a browser you'll see that the photo is not uploaded there.
Other device album flow:
@rachelmcr thanks for the report, I will split this in three tickets because they are three different issues.
I confirmed that these issues also exist with the previous media picker in 8.3. This is the first time I noticed these issues — I think because the previous media picker auto-selects the Camera Roll album (so if I take a photo with the camera option I'm usually already in the Camera Roll album), whereas the new media picker takes me to the Albums list where I can choose any album before trying to take a picture.
It seems like we should not offer the camera option if the user is in an album other than the Camera Roll, or perhaps we should automatically switch them to the Camera Roll album after taking a picture so they can easily find and select/insert the new photo.
Extracted the following sub issue: #7760
So the main issue here is that photos taken while inside one of the Apple Automatic albums: Favourites, Selfies, Panoramas, cannot be added automatically added to the album, the system needs to do it before we can see them.
One possible solution is to remove the camera preview/capture options from all albums except the Camera Roll.
What do you think @rachelmcr @frosty @iamthomasbishop ?
@SergioEstevao Yeah, I'm wondering if that's going to be the best option. The only question is whether that's going to be discoverable enough for users. Or perhaps, we still show the capture cell everywhere but automatically switch the user to the Camera Roll / All Photos album if they choose it and take a picture.
Ok, I dig it a bit more, and found some bugs on the current implementation of the picker.
When we have the single selection mode active, no notifications of selection where being send, so when we took an photo it was not automatic closing the picker.
This applies to the Gravatar and Site picker, so after I fix this when you take an photo there it will automatically selected and close the picker and avoid this issue altogether.
I still can go the Camera Roll for the multiple selection mode.
@SergioEstevao @frosty
In terms of gravatar flow, I'm wondering if we simplify the process like so:
Retake (goes back to Camera default) or Use PhotoUse Photo, we should simply go to the Resize & Crop screen where they can go back or tap Use.Does this make sense?
The main difference here is once the user takes the photo, we allow them to retake/cancel or Use Photo and skip to the resize & crop.
@iamthomasbishop It's being fixed exactly as you said here: https://github.com/wordpress-mobile/MediaPicker-iOS/issues/223 :)