jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

Multi-PickPhotosAsync on Samsung #898

Open Fahad-Ali-Qureshi opened 4 years ago

Fahad-Ali-Qureshi commented 4 years ago

Hi James, still unable to pick multiple photos on Samsung. I've tried on Samsung Galaxy A30 with Android 10 OS. And also I have not found any option to choose google photos for images picking.

Kindly take a look at it as I need to publish my app ASAP but waiting for this issue to be fixed.

Fahad-Ali-Qureshi commented 4 years ago

Or is there any other NuGet plugin available to overcome this issue? As WhatsApp and Facebook Apps open their own customized gallery for image picking.

Any that kind of pkg available for Xamarin.Forms?

Fahad-Ali-Qureshi commented 4 years ago

Multi working on Realme3 Android 10. but not in Samsung. As well as not working even in Google Pixel 3 Emulator

MatthewKapteyn commented 4 years ago

Figured i'd reply here because I had this issue last year. The problem doesn't lie in the MediaPlugin but instead the Samsung photo gallery app (which is usually the default on most Samsung phones) which ignores the mult-pick request ExtraAllowMultiple that's passed to it. TBH I'm not surprised Samsung still hasn't fixed this.

You can bypass the system default and manually set the gallery app to one that works properly like the Google photo gallery which is present on most devices.

Link to the code change where you can customize the gallery used https://github.com/MatthewKapteyn/MediaPlugin/blob/a424387a60b9a889d4c9d5b585a667de70965a29/src/Media.Plugin/Android/MediaPickerActivity.cs#L126