#iOS Media Services not working
1 messages ยท Page 1 of 1 (latest)
Can you please update to latest version and confirm?
Tried the newest version but still no screenshot
Where should the picture be stored? It should be available on Recent photos, on the Photo app right?
We've tested on the latest version with 3 devices and no pictures on the photo app
- iPhone 12
- iPhone 13
- iPhone 15 plus
Yes, right. Please let me schedule another test tomorrow on a different device and will update you if there is any fix required.
The code seems to be proper from your end. I will double check on my end and update after the test.
Okay, thanks! cc @elder blade
@brisk light @elder blade
I was able to reproduce with only your code and realized only later after spending several hours that it was the issue with the filename passed.
It's always good to use Date.Now.Ticks instead of Date.Now for random name as the later changes based on the locale.
While locale is not a concern here, but having the special chars not allowed in the filename is the issue.
Unfortunately, ios just throws random "PHExternalAssetResource: Unable to issue sandbox extension for ..." error description leading to further delay.
Anyways, I additionally handled some edge cases too by revisiting this specific code. The fixes will be in 3.3.1 and also sharing here the latest code if you need it.
Summary
Make sure there are not / or special chars in the filename being passed.
DateTime.Now => DateTime.Now.Ticks
Also, Note that passing directory(album) name may need additonal permissions (full access to photo library!) instead of just add.
If your game really needs to have a separate album, go for it. But else, just add permission would suffice.
Yep!
Please update this file which has some updates related to error handling in some cases.
It's working! Thanks