sms-retriever-api

How to use GoogleAPIClient (deprecated) with SMSRetriver API in Android

☆樱花仙子☆ 提交于 2020-05-23 09:36:28
问题 I am trying to implement SMS Retriever API for SMS verification. The official way mentioned in the documentation says to use GoogleApiClient along with HintRequest to retrieve the mobile number from the device HintRequest hintRequest = new HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .build(); PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent( googleApiClient, hintRequest); try { startIntentSenderForResult(intent.getIntentSender(), RESOLVE_HINT, null, 0, 0, 0);