How to open up a SMS dialogue button in a Meteor phone app?


#1

I’m trying to

<a href="sms:123456789">
    <button class="sms-spiderman-button">
        <i class="icon ion-chatbubble"></i> Message
    </button>
</a>

When a user clicks on this button, nothing happens on the phone and within Xcode this error pops up:

*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument

Has anyone implemented a simple SMS to number buttton in a Meteor phone app or knows how to make it work?


Whitelisting mailto: links in Cordova
#2

@pasharayan FYI there’s a clue here: