+
80
-

app如何安装时进行参数传递?

app如何安装时进行参数传递?比如我发送一个安装链接给新用户,新用户通过这个链接下载了app并进行安装,打开后新用户注册了,那后台就能看到他是我拉的新用户

网友回复

+
0
-

可以通过js获取设备gpu型号、屏幕长宽、内网与公网ip地址,生成一个uuid及传参传给服务端,服务端暂存uuid及参数,当用户下载完app,首次打开app的时候,通过webview内js获取设备gpu型号、屏幕长宽、内网与公网ip地址,生成一个uuid传给服务端,从服务端获取传参,过程如下

这里面的获取uuid的思路可以分ios与android来进行

android

screen.width 屏幕宽度

screen.height 屏幕高度

devicePixelRatio 屏幕像素比

version webgl 版本

renderer gpu 型号

内网IP 通过webrtc 获取

外网IP 通过http协议获取

ios

screen.width 屏幕宽度

screen.height 屏幕高度

devicePixelRatio 屏幕像素比

version webgl 版本

renderer gpu 型号

设备型号

外网IP 通过http协议获取

我知道答案,我要回答