otpReader icon indicating copy to clipboard operation
otpReader copied to clipboard

otpReceived method not calling

Open peddiraju11 opened this issue 7 years ago • 3 comments

I need to read recieved OTP in two different screens. So, I have binded OtpReader.bind(this, "BP-BLOSSM") method in two different activities. Now otpReceived method calling in one Activity and and not calling in another activity when I receive OTP message.

peddiraju11 avatar Jan 05 '18 11:01 peddiraju11

That is probably because currently only one listener is supported. You can use one listener and emit events from that to your 2 activities as a workaround

swarajsaaj avatar Jan 05 '18 12:01 swarajsaaj

Is unbind() method solve above issue ?

peddiraju11 avatar Jan 05 '18 12:01 peddiraju11

@peddiraju11 unbind would be to remove a listener but wasn't the original problem to have two listeners as i understand?

swarajsaaj avatar Jan 30 '18 09:01 swarajsaaj