如何将参数附加到Firebase短链接?使用长链接,我可以做到,但是您操作起来太容易了。我必须提供一个用户ID。
Task<ShortDynamicLink> shortLinkTask = FirebaseDynamicLinks.getInstance().createDynamicLink()
.setLongLink(Uri.parse("https://xxxxx.page.link/?link=https://play.google.com/store/apps/details?id=de.xxxxxx/"))
.buildShortDynamicLink()
.addOnCompleteListener(MainActivity.this, new OnCompleteListener<ShortDynamicLink>() {
@Override
public void onComplete(@NonNull Task<ShortDynamicLink> task) {
if (task.isSuccessful()) {
// Short link created
String shortLink = task.getResult().getShortLink().toString();
Uri flowchartLink = task.getResult().getPreviewLink();
} else {
Log.w(TAG, "getDynamicLink:onFailure");
}
}
});