3
我用火力地堡的動態鏈接,它可以打開我的應用程序,去演商店或去一個URL。但是當我通過鏈接傳遞一些參數時,我只能得到第一個參數。 這裏是我的動態鏈接:通行證通過火力地堡動態多PARAMS鏈接的Android
https://xx.app.goo.gl/?link=http://xx.com/?usn=abc&pass=def&apn=com.xx&afl=http://google.com
而且我用這個代碼來獲取鏈接:
// Build GoogleApiClient with AppInvite API for receiving deep links
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this, this)
.addApi(AppInvite.API)
.build();
// Check if this app was launched from a deep link. Setting autoLaunchDeepLink to true
// would automatically launch the deep link if one is found.
boolean autoLaunchDeepLink = false;
AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink)
.setResultCallback(
result -> {
if (result.getStatus().isSuccess()) {
// Extract deep link from Intent
Intent intent = result.getInvitationIntent();
String deepLink = AppInviteReferral.getDeepLink(intent);
Logger.e(deepLink);
}
}
);
和日誌打印:http://xx.com/?usn=abc(通= DEF丟失了) 任何解決這個問題?
謝謝,我會檢查它。美國/通過只是爲了測試目的:D – maphongba008
它的工作原理,非常感謝。 – maphongba008
請幫助這個類似的問題:http://stackoverflow.com/q/42119692/6144372 –