Ho creato collegamento dinamico manualmente e ho impostato alcuni parametri aggiuntivi sul link, in questo modo: https://XXXXX.goo.gl/?link=https%3A%2F%2Fairbanq.send.com%2Fsendmoney&apn=com.xxxx.xxxx&amv=1&username=Adri&amount=7.00Come ottenere parametri extra dal collegamento dinamico usando Firebase?
Ma quando si apre l'applicazione ottengo solo: "https: // airbanq.send.com/sendmoney" senza i parametri addiotional
sto usando questo codice di esempio https://github.com/firebase/quickstart-android/tree/master/dynamiclinks
alcun aiuto per favore,
Grazie
0.123.Il mio codice
public String buildDeepLink() {
// Get the unique appcode for this app.
String appCode = AirBanqApp.mContext.getString(R.string.app_code);
// Get this app's package name.
String packageName = AirBanqApp.mContext.getPackageName();
// Build the link with all required parameters
Uri.Builder builder = new Uri.Builder()
.scheme("https")
.authority(appCode + ".app.goo.gl")
.path("/")
.appendQueryParameter("link", deepLink)
.appendQueryParameter("apn", packageName);
// If the deep link is used in an advertisement, this value must be set to 1.
if (isAd) {
builder.appendQueryParameter("ad", "1");
}
// Minimum version is optional.
if (minVersion > 0) {
builder.appendQueryParameter("amv", Integer.toString(minVersion));
}
if (!TextUtils.isEmpty(androidLink)) {
builder.appendQueryParameter("al", androidLink);
}
if (!TextUtils.isEmpty(playStoreAppLink)) {
builder.appendQueryParameter("afl", playStoreAppLink);
}
if (!customParameters.isEmpty()) {
for (Map.Entry<String, String> parameter : customParameters.entrySet()) {
builder.appendQueryParameter(parameter.getKey(), parameter.getValue());
}
}
// Return the completed deep link.
return builder.build().toString();
}
Can incolli un codice che ci mostra come stai ottenendo ciò che stai ricevendo? ... solo la parte rilevante. – Andrej
risolvo il problema, grazie pubblicherò il mio codice, prima e dopo la correzione –
Possiamo usare Firebase POST URl per generare Segnala questa risposta [collegamento] (http://stackoverflow.com/a/41696577/2599596) –