Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Linking.openUrl to send an sms in IOS

$
0
0

I need to send an SMS with a prefilled body in a React-native app but I'm having trouble passing the phone number

This is what I have tried so far:

Linking.openURL(sms:/open?addresses=${phone}&body=${body})

Linking.openURL(sms:${phone}&body=${body})

Linking.openURL(sms:/?addresses=${phone}&body=${body})

The sms App opens and the body is in the message filed but the To: field contains 'No Name' with a spiner.

*this is on the latest version of IOS (13.2.2)


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>