As noted in the closed issue #79 , (as well as here: flutter/flutter#81546 ) a fatal error may arise when a different plugin is requesting a relevant permission on android.
This is caused by a small bug in onRequestPermissionsResult inside SmsMethodCallHandler.kt
The function should only call result.success or result.error if the telephony plugin was the initiator of the permissions request.
permissionsController.isRequestingPermission is already available, so this is a very easy fix.
As noted in the closed issue #79 , (as well as here: flutter/flutter#81546 ) a fatal error may arise when a different plugin is requesting a relevant permission on android.
This is caused by a small bug in
onRequestPermissionsResult
insideSmsMethodCallHandler.kt
The function should only call result.success or result.error if the telephony plugin was the initiator of the permissions request.
permissionsController.isRequestingPermission
is already available, so this is a very easy fix.I will attach a pull request.