iqbalmineraltown / flutter_sms_receiver

SMS Receiver API Flutter Plugin
BSD 3-Clause "New" or "Revised" License
22 stars 22 forks source link

added stopListening method #14

Closed mahdidahouei closed 2 years ago

mahdidahouei commented 3 years ago

This plugin had a bug that when we close the application it used to throw an error saying that sms_receiver has leaked a listener... so I implementedstopListening method to it. now it should be called in dispose method.

iqbalmineraltown commented 3 years ago

Thanks! Looks good to me

could you update the example project and provide how-to-use in README?

dnordberg commented 3 years ago

Could you please merge this and update the version, doesn't seem I can use your package otherwise since it keeps looking for SMS messages if the listener is not disposed and you enter the code manually.

iqbalmineraltown commented 3 years ago

I'd love to merge this after example usage and readme provided

iqbalmineraltown commented 2 years ago

thanks for your PR 😄 I've just implemented this on 0.4.0, feel free to open PR for further improvements