OTP reader for ios and android

How can I read the OTP code from SMS on both ios and android?

Maybe this stack overflow answer will help with Android. Here’s a medium article about the same topic.

But see this comment too.

There’s also an open feature request.

Here’s a previous discussion:

Thank you @wodin for your swift respons. I will check it out and update here