I want to use a iPad to display a web app. The iPad will be used by many people, so I dont want the users to be able to navigate to any other sites. Is it possible to "remove" the top bar in safari (or any other browsers on iPad)
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm trying to implement sending of SMS in my app. I want to try this via a 3rd party. So I need to make a HTTP GET request for sending the SMS:
https://sveve.no/SMS/SendMessage?user=*&passwd=*&to=***&msg=Meldingstekst&f=json
I tried this:
let url = URL(string: "https://sveve.no/SMS/SendMessage?user=myUser&passwd=myPassword&to=12345678&msg=This is the message text&f=json")!
let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
guard let data = data else { return }
print(String(data: data, encoding: .utf8)!)
}
task.resume()
Fatal error: Unexpectedly found nil while unwrapping an Optional value
The error is on the URL. What can be the issue?