HMS-Core / huawei-account-demo

Sample code for quickly integrate Huawei ID. HUAWEI Account Kit provides developers with simple, secure, and quick sign-in and authorization functions.
https://developer.huawei.com/consumer/en/hms/huawei-accountkit?ha_source=hms1
50 stars 51 forks source link

Automatically Reading an SMS Verification Code #7

Open zer0Ambit1on opened 2 years ago

zer0Ambit1on commented 2 years ago

Hello. Can you pls consider one point? Your func "ReadSmsManager.startConsent" has 2 ways to terminate itself:

  1. Obtain Sms message.
  2. Timeout duration 5 min is over. Is there a way to do it programmaticaly? i need to do it by myself, because, for exaple, user can change his mind. it's ok, if this service will continue to work, but notification about "reading verification code from sms" should not be shown. is there a way to do it?
Mike-mei commented 2 years ago

Which way do you use? "Automatically Reading an SMS Verification Code Without User Authorization“ or “Automatically Reading an SMS Verification Code After User Authorization”?

zer0Ambit1on commented 2 years ago

After User Authorization