Reputation: 5545
I need to verify account using reading sms and then matching the verify code. Android have such functionality like :
where they can read sms and check a particular value. Need to verify account using text messages without open the text message like in Whatsapp used in Android.
Is there any NSNotification Center
etc in iOS to serve this task?
Upvotes: 0
Views: 603
Reputation: 1529
You can get OTP from your message.
otptextField.textContentType = .oneTimeCode
Can please get the project from his link.
https://github.com/karthickkck315/Automatic-OTP
Upvotes: 0
Reputation: 69489
There is no way to do this on iOS, since your app does not have acces to the incoming text messages. Also it is disallowed by the AppStore review guidelines due too privacy concerns.
Upvotes: 1