This Cordova plugin enables automatic retrieval of SMS messages on Android using the Google SMS Retriever API. It allows your app to passively listen for a single incoming SMS that matches the required format, without requesting SMS read permissions or direct access to the user's inbox.
Listens for a single SMS message using the SMS Retriever API.
No need for SMS or RECEIVE_SMS permissions.
Trigger a callback when a matching SMS is received.
Improves user experience by avoiding manual SMS reading prompts.
Start listening using cordova.plugins.SMSRetriever.startWatch(successCallback, errorCallback). When an SMS is received, the onSMSArrive event is fired with the message content.
cordova.plugins.SMSRetriever.startWatch(successCallback, errorCallback)
onSMSArrive