我已经实现了下面给定的代码,让用户分享我的应用程序。它工作正常,但我怎么知道用户是否真的分享了我的应用程序?因为如果用户共享应用程序,我的应用程序会解锁某个功能。
[使用的包:- share_plus 3.0.4]
onTap: () async {
const _textShareUrl =
'https://www.youtube.com/watch?v=CNUBhb_cM6E&list=PLk6qkmrzOcdx5R4-UqI_jDPYsLWNnZ1dq&index=2';
await Share.share(
'Social share test\n\n$_textShareUrl');
Future.delayed(const Duration(seconds: 10), () {
setState(() => _share = true);
});
},