Ios 11 sms app not working
<html> <body> <a href="sms:+24321&body=This%20is%20the%20body">Click Me!</a> </body> </html> When you click on the link above, iOS successfully opens the IOS Messages app. If previously the user used the iOS Messages application in the background on his phone, then iOS correctly transfers the request parameters contained in the link, for example. to: (24321) and body: (This is the body), but if the user does NOT open iOS messages, iOS opens the message, but DOES not open the message with filling and filling the body.
This is not a problem for iOS 10, it seems to have appeared in iOS 11.
This is clearly an iOS 11 bug.
The same thing happens with openURL, with this code, without an if state, we have the same results:
NSString *sms = @"sms:+1234567890&body=This is sms body."; NSString *url = [sms stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; } In a double call, first open the message application, and then pass the correct parameters.
It works with a double call, but this is a BAD workaround!
The same thing happens with web code.
I can only tell you to report an Apple error in this link.
This answer is not for generosity, I just wanted to share my test with you.;)