Friends, I just joined you. I have developed a wkwebview application and have firebase integration, but I need to send the device token of each device as a parameter along with the load url of the wkwebview, but I cannot pass the token from appdelegate to the content view. I am getting nil value or error. Is there any way we can load it into wkwebview via appdelegate?
I can create a url with the parameter given in Apple Delegate, but I cannot transfer this url to wkwebview or content view.
example:
extension AppDelegate: MessagingDelegate {
func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
// let deviceToken:[String: String] = ["token": fcmToken ?? ""]
url = "http://localhost:5185/ogrAuth/signIn?token=\(fcmToken ?? "")";
}
}