i'm using this code https://github.com/firebase/quickstart-ios/tree/master/messaging to implement push notification on my swift App.
I've a problem on this part of code
// TODO: If necessary send token to application server.
let p = "token="+fcmToken
var urlToken = NSURL(string: "www.www.it")
let request = NSMutableURLRequest(url: urlToken! as URL)
request.httpMethod = "POST"
xCode return me a failed build because Cannot convert value of type 'NSURL' to type 'URL' in coercion But if i'm using the same code, without Firebase, on other project it works fine.
How can i fix it ?
Thanks
Antonello
Comments
Post a Comment