I am using firebase dynamic link. I am facing 2 issues firebase official website doesn't have enough information and already did googling.
(1) When i created link programatically it doesn't work on safari. but if i copy link and open it in chrome or other browser its working like charm.(also doesn't working on facebook app)
(2) I got dynamic link and its working in chrome browser without giving any kind of error. but at firebase console there are no listing for that all links except if i created dynamic link by using console then it will appear in console.(programmatically doesn't reflect on console)
Here is my code for create dynamic link:
let strLink = "https://google.com/page?Id="+self.textField1.text!
guard let deepLink = URL(string: strLink) else { return }
let components = DynamicLinkComponents(link: deepLink, domain: "e59pd.app.goo.gl")
let iOSParams = DynamicLinkIOSParameters(bundleID: "com.procorner.eduflex")
iOSParams.minimumAppVersion = "8.0"
components.iOSParameters = iOSParams
let socialParams = DynamicLinkSocialMetaTagParameters()
socialParams.title = "Title is here..."
socialParams.descriptionText = "Description is here"
socialParams.imageURL = URL(string:"https://firebasestorage.googleapis.com/v0/b/todo-list-1da4a.appspot.com/o/shopping%403x.png?alt=media&token=b5f02235-5c1e-4354-94c5-1354eb36bed9")
components.socialMetaTagParameters = socialParams
// Build the dynamic link
let link = components.url
print("\n\n\n\nlink",link)
// Or create a shortened dynamic link
components.shorten { (shortURL, warnings, error) in
if let error = error {
print(error.localizedDescription)
return
}
print("\n\n\nshortURL",shortURL)
self.strGLink = (shortURL?.path)!
self.textVIew1.text = shortURL?.absoluteString
// TODO: Handle shortURL.
}