Currently, if a field is missing from the ShareData, it is set to the empty string (note that if the field is missing from the "params" in the manifest, it is omitted entirely; this is about if the field is present in the manifest but not in the share data payload). This means the target app cannot distinguish between data being omitted and being the empty string.
I think this is a hold-over from the URL template version. There's no reason to do this now. We should just omit the key/value pair if the field is not present in ShareData.
Currently, if a field is missing from the ShareData, it is set to the empty string (note that if the field is missing from the
"params"
in the manifest, it is omitted entirely; this is about if the field is present in the manifest but not in the share data payload). This means the target app cannot distinguish between data being omitted and being the empty string.I think this is a hold-over from the URL template version. There's no reason to do this now. We should just omit the key/value pair if the field is not present in ShareData.
The line in Launching the web share target:
would become