How to read OTP from messages using Appium on iOS > 11.2.0?

I have a scenario, Where I need to read the OTP from SMS and entered it into the app. For example, When we trying to verify mobile number on Myntra App we get 4 digit OTP to the mobile number registered on Myntra. I need to read the OTP and enter it in the textbox using Appium. could you please let me know, how could we read the OTP value in SMS. Auto read is not enabled.

Can’t you just open notification panel on top (just swipe) and then read the OTP?

Telmo, I tried that approach but appium is not able to identify the notification.