9to5ios
9to5ios

Reputation: 5545

Is there any Incoming SMS Broadcast Receiver like Receiver in iOS

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

Answers (2)

Karthick C
Karthick C

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

rckoenes
rckoenes

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

Related Questions