Linking.openUrl to send an sms in IOS - ios

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)

The problem seemed to be with the simulator it works on a real device and as Bug mentioned the correct syntax is indeed
Linking.openURL(`sms:${phone}&body=${body}`)

Related

Why is my SMS message value "NULL" in the backup database from iphone?

From the backup of my iphone messages on my mac, majority of my message value is NONE when viewed in the database viewer.
Hi
I have taken backup of my iphone messages on my mac. But when I open the sms backup data base file (stored at ~/Library/Application Support/MobileSync/Backup/3d/3d0d7e5fb2ce288813306e4d4636395e047a3d28), most of the message values are NULL (screenshot attached)
Can someone advise why is it so?
Regards
Andy
Update - I figured out that iPhone is saving the text message as MMS. Even after I move my text message from iPhone to android they are transferred as MMS and not SMS. May be that's the issue.

Outlook for iOS removing Spaces with ms-outlook://compose

We have an iOS app that generates an Outlook email using ms-outlook://compose. Previously, this worked correctly and we could include spaces in the output using %20. Even HTML was working correctly.
But recently we noticed that Outlook is removing all of the spaces from the content we are sending over. There have been recent updates to the Outlook iOS app that are likely the cause.
Has anyone seen this behavior and are aware of any work arounds?

unable to pass in params w/ SMS:// deeplink on iOS 11 when iOS Messages is not already open

I'm trying to invoke the following url on iOS 11.0 developer preview:
<html>
<body>
Click Me!
</body>
</html>
When you click the link above, iOS successfully opens the native iOS Messages application. If the user previously had the iOS Messages app open in the background on their phone, then iOS properly passes in the query parameters contained in the link, e.g. to: (24321) and body: (This is the body), but if the user does NOT already have iOS Messages open, then iOS opens Messages, but does NOT open a message w/ to and body filled out.
This is not an issue on iOS 10, it seems to have been introduced in iOS 11.

Firebase dynamic link doesn't work on iOS

I am making some app and use firebase dynamic link.
When I tested dynamic link on my android phone, It works well.
And in my iOS, it also works, but the page does not change and any parameter does not pass.
When I input deeplink like below picture on safari, it works well.
Is there something else that I missed?
I set Associated Domains on xcode.
I am using iOS 10 and using ionic2(cordova)!
You can do that using SMS app.
Paste your deepLink and send it. So when you click on the link your app will be open.
This answer also applies to the question: Firebase dynamic link not opening the app iOS
Testing dynamic link using SMS app

What is this error 7 with google-cast sample ios/application?

I downloaded the chromecast ios sample and when I connect the sample application to chromecast, it give the following error:
error domain=com.google.GCKError code=7 "The operation couldn't be completed. (com.google.GCKError error 7.)"
Do you know why?
I got the same error message while testing the "CastHelloText-ios" sample provided by Google on GitHub.
First I checked all the required steps described by Google were ok:
In your cast developer console: check your Chromecast has the status "Ready for Testing" otherwise register it.
host the receiver somewhere on the web and note the URL
in the cast developer console, declare a new app with a custom receiver and fill the URL of your receiver. Save it and note the application ID.
fill this application ID in the controller of your iOS app: static NSString *const kReceiverAppID = #"1234ABCD";
make sure that your chromecast has the option "Send this Chromecast's serial number to Google when checking for updates" is ticked (in the iOS app it's in the General section of your device)
Finally I solved the issue by rebooting the chromecast:
Run the Chromecast iOS app from Google, click on your chromecast device, click on General and click on the red button "Reboot".
For information, I've performed this reboot after reading the note of this Google documentation:
If you wish to verify that your published application is working properly, you can manually restart your Google Cast device to force a load of new configuration data.
PS:
- to reboot your chromecast you can use any chromecast app provided by Google (iOS, Android, MAC, etc.)
GCKErrorCodeApplicationNotFound - Typically this error will occur if either your device doesn't have [x] send my serial # to Google set, or your AppID is incorrect.
We'll try to get the docs updated shortly.
For test this app you will need to change this line
[self.deviceManager launchApplication:kReceiverAppID];
To use default applicationID:
[self.deviceManager launchApplication:kGCKMediaDefaultReceiverApplicationID];
Or you need to create a development account and to change kReceiverAppID with your AppID.
And if you have an another error, you can to check the GCKError.h class, there has all error codes possible with explanation
I had the same problem. In my case seems like the Chromecast still associated with the old Application ID. It worked fine after restarting the device.

Resources