我已经在Android中创建了firebase动态链接,我正在使用接收深层链接路径。
FirebaseDynamicLinks.getInstance().getDynamicLink(getIntent()).addOnSuccessListener(this, new OnSuccessListener<PendingDynamicLinkData>() {
@Override
public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {
if (pendingDynamicLinkData==null)return;
if (pendingDynamicLinkData.getExtensions() != null) {
Bundle ext = pendingDynamicLinkData.getExtensions();
PurplleTrace.i("Deeplink","keySet "+ext.keySet().isEmpty());
for (String key : ext.keySet()) {
PurplleTrace.i("Deeplink", "Ket" + key + "value"
+ ext.get(key).toString()); //To Implement
}
}
PurplleTrace.i("Deeplink", pendingDynamicLinkData.getLink().toString());
PurplleTrace.i("Deeplink", "" + pendingDynamicLinkData.getMinimumAppVersion());
}
});
如何从链接获取UTM参数的来源,媒介,广告系列参数