lowb1rd / TiMediaPicker

Media Picker Module (Image and Video) for Titanium Mobile
43 stars 21 forks source link

Mediapicker showing wrong albums #17

Open arifje opened 8 years ago

arifje commented 8 years ago

On iOS, the picker is generating a huge tableView with rows/albums that have a date-formatted name. This way the picker is not very userfriendly, because of the structure.

Example: http://imgur.com/a/zoAw7

I tested another module (https://github.com/Bouncingfish/TiMediaPicker), and this one shows the correct structure: http://imgur.com/a/vnXYT

Any idea why this is happening and how it can be fixed?

Edit; using SDK 5.4.0.GA

Thanks!

natefollmer commented 8 years ago

An easy fix would be to not add the Asset Group (the folder) if it is empty. If you're using the example provided in this module (the MediaPicker.js file) inside the gotAssetGroups function on line 146, add this:

if (obj.count != 0)
{
   data.push(row);  
   nr++;
}
arifje commented 8 years ago

Thanks for your quick reply.

Tried your solution, but something else is happening; it shows I have 49 images in "All Photos", but when I view it, it only shows 1.

Example: http://imgur.com/a/8VzUT

Also, my guess is that all of these albums that have a date-formatted name are "iPhoto events", which are grouped in a seperate album on the native Photos app on iOS.

natefollmer commented 8 years ago

I've never personally seen this, but I had a user that had a similar issue. It was caused by then using icloud backup. When I get some time, I'm going to experiment with this on my iPod and see if I can replicate. Are you using icloud backup?

On Fri, Aug 19, 2016, 3:35 AM Arif notifications@github.com wrote:

Thanks for your quick reply.

Tried your solution, but something else is happening; it shows I have 49 images in "All Photos", but when I view it, it only shows 1.

Example: http://imgur.com/a/8VzUT

Also, my guess is that all of these albums that have a date-formatted name are "iPhoto events", which are grouped in a seperate album on the native Photos app on iOS.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/lowb1rd/TiMediaPicker/issues/17#issuecomment-240949292, or mute the thread https://github.com/notifications/unsubscribe-auth/AIN8zPB9PeTMYtkrO6rrtEtFbdb25gW_ks5qhVzHgaJpZM4JnyWb .

arifje commented 8 years ago

Yup, iCloud backup is enabled indeed.

natefollmer commented 8 years ago

That seems to be the issue then. It only shows pictures that are phyically ON the device it seems... I have to finish an update for another app and then I'm coming back to this. Hopefully I can get you an answer quickly. I'd love to get this fixed so please share your results if you find a solution before I do :) I'd say give me about 2 days yet to get back to this.

On Fri, Aug 19, 2016, 8:48 AM Arif notifications@github.com wrote:

Yup, iCloud backup is enabled indeed.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/lowb1rd/TiMediaPicker/issues/17#issuecomment-241009244, or mute the thread https://github.com/notifications/unsubscribe-auth/AIN8zHDbgQCUFuXPHyXo6XJcq_4jA8dBks5qhaYegaJpZM4JnyWb .

e3bmo3ty commented 6 years ago

any updates for this ? ..... still no images when icloud backUp works