jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
281 stars 173 forks source link

Huawei Devices gets an error #155

Open Lawati97 opened 2 years ago

Lawati97 commented 2 years ago

For some reason when I get platform exception when am using this package with Huawei non gms devices

PlatformException (PlatformException(ERROR_START_SMS_RETRIEVER, Can't start sms retriever, null, null))

Apoorvgarg-creator commented 1 year ago

Facing the same issue, It is occurring on Android version 13, How to solve this issue ?

danuprakoso26 commented 1 year ago

Facing the same issue, It is occurring on Android version 13, How to solve this issue ?

did you find any solutions?

Apoorvgarg-creator commented 1 year ago

Facing the same issue, It is occurring on Android version 13, How to solve this issue ?

did you find any solutions?

Yes, Android 13 now uses Sms user consent Api and this package depends upon Sms retriever Api. So by implementing the former one, you can solve the issue

kailashndx commented 1 year ago

@Apoorvgarg-creator can you please explain the solution little bit