Firebase AppInvite已被弃用,我必须更新代码。
库: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 {
//...
}
}
});
}你知道新的密码吗?
https://stackoverflow.com/questions/47551342
复制相似问题