Cocos creator - ios - how to autofill otp?

we are building a game in cocos creator where we need to verify the phone number of the player by entering the otp they receive on their phone number in an sms. now, we are not able to do this on the ios platform and i was wondering if someone knew a way.
here are some links:

ios otp autofill method

apple documentation

also, since after we send out a query for the otp, we will have to wait for some time before we will receive the otp from the sms, there needs to be a way for communication from objective-C to typescript. how can we achieve that.

thank you !!!

As the follow tips, you still fail to auto fill OTP?

You can pass the message to javascript VM by use ScriptingCore::getInstance()->evalString call.