DEV Community

Discussion on: Hands on Web Share API

Collapse
 
mojitane profile image
moji ///

Do you know any best practices for length of shared text or the size of shared images – or if they are different for different devices? Maybe I can find a preview generator for this to test.

Collapse
 
fezi32 profile image
Felix Jordan • Edited

Hey again, what also comes in my mind (regarding the question of a preview generator) is that you couldn‘t have any global preview generator, that works for every share taget. What you could do is a preview generator for one or multiple share targets, but a global preview generator is not possible. Because every share target (application) behaves different.

Collapse
 
fezi32 profile image
Felix Jordan

Good question! I couldn't find any limitations rather for length of shared text or size of shared images. But I think there are no real limitations out there. Maybe the share targets have the possibility to reject large files or long texts. This would mean that they will not show up in the dialog (maybe testing twitter with a long text would be interesting). But I think that there are no limitations.
But there could be the case, that maybe the share target will do something special with the text (truncating or whatever) or reduce the file size by reduce the quality.

I don't think that it is possible to find a preview generator. Anyways it couldn't be 100% correct, because the user agent/device has the power. But if you find one, let me know (I would be interested as well) :)

Some comments have been hidden by the post's author - find out more