0
Firebase AppInviteは廃止されました。コードを更新する必要があります。AppInvite.AppInviteApi.getInvitation()は非推奨です
図書館:com.google.firebase:firebase-invites:11.6.2
コード:
private void handleDeepLink() {
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(mActivity)
.enableAutoManage(mActivity, this)
.addApi(AppInvite.API)
.build();
AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, mActivity, false)
.setResultCallback(
new ResultCallback<AppInviteInvitationResult>() {
@Override
public void onResult(@NonNull AppInviteInvitationResult result) {
if (result.getStatus().isSuccess()) {
Intent intent = result.getInvitationIntent();
sDeepLink = AppInviteReferral.getDeepLink(intent);
//...
} else {
//...
}
}
});
}
は、新しいコードを知っていますか?