I am constructing a xcallBack Url like this
"\(scheme)://x-callback-url\(path)?x-source=ApName&ResponseData=\(base64str)"
and after constructing i had open url method
UIApplication.shared.open(callbackUrlN!) { (result) in
if result {
print("success")
}
else {
print("cannot open url")
}
}
when my application is foreground state it is working fine, but when it enters into the background state instead of printing success i am getting "cannot open Url", Eventhough i had tried dispatch global background thread it is not working
Does anybody could help me out on this?