我想知道是否有可能跟踪用户用来与webshare共享某些东西的选项(例如,它是通过WhatsApp或Facebook共享的)。
提前谢谢。
发布于 2020-07-03 07:51:57
这是不可能的参见WebShare API的share method规范
用户代理不得允许网站了解哪些共享目标可用,或所选目标的标识。
当用户共享某些内容时,返回的承诺将得到解决,但已解析的值只是undefined。
1. Once the data has been successfully transmitted to the target, resolve `[[sharePromise]]` with `undefined`.你只知道它是否已被分享,但你不知道与谁。
https://stackoverflow.com/questions/62710673
复制相似问题