title: Could not cast value of type __NSCFString
body: <p>I am trying out FCM messaging service. I have setup everything perfecting. When I receive message from FCM I get the following error. I am not sure what is wrong here:</p>
  
  <pre><code>AnyHashable("google.c.a.c_id"): 1586592282379086000, AnyHashable("gcm.message_id"): 0:1515418580276498%f4373656f4373656]
  
  Could not cast value of type '__NSCFString' (0x1b4c70040) to 'NSDictionary' (0x1b4c70b80).
  
  2018-01-08 19:06:21.198548+0530 Ozone[1067:540436] Could not cast value of type '__NSCFString' (0x1b4c70040) to 'NSDictionary' (0x1b4c70b80).
  </code></pre>
  
  <p>The strange part is I created a seperate Push Notification App and put the same code, it is working there. What could be wrong here?</p>
  
  <p>Here is the piece code: I am getting the error in let d : [String : Any].....line</p>
  
  <pre><code>UNNotificationPresentationOptions) -&gt; Void) {  
             print("Handle push from foreground\(notification.request.content.userInfo)")  
  
              let dict = notification.request.content.userInfo["aps"] as! NSDictionary  
              let d : [String : Any] = dict["alert"] as! [String : Any]  
              let body : String = d["body"] as! String  
              let title : String = d["title"] as! String  
              print("Title:\(title) + body:\(body)")  
              self.showAlertAppDelegate(title: title,message:body,buttonTitle:"ok",window:self.window!)  
  
  }  
  </code></pre>
  
  <p>Can some one help me with this? I know it is very general error but not sure why this is coming as it is working fine in another app.        </p>
  
  <p>Thanks!</p>