//. Ios code
let dic = ["recipientId": selectedMsgReceiverId,
"messageId" : randomID ,
"payload": chatPayload] as [String : Any]
SocketIoManager.sharedInstance.manager.defaultSocket.emitWithAck(SocketEventNames.newMessage.rawValue, [dic]).timingOut(after: 0) { data in
print("Sagar===",data[0])
}
Any fetch same issue. then please give the me solution
I tried to pass the JSON object. same JSON object work in android { "recipientId" : "62357d91b26bf6000b37f849", "payload" : { "senderImage" : "https:\/\/netclandev.storage.googleapis.com\/unknown\/multipart\/46e8b4f8-507a-46e3-b371-9d3ca07993b9.jpg", "senderName" : "Rajiv Arora", "timestamp" : 1660019894.6639471, "locationDuration" : 0, "subtype" : 0, "message" : "VGM", "receiverId" : "62357d91b26bf6000b37f849", "downloadStatus" : 0, "message_id" : "P4EUOzfe7YhD5SbUT5loprKHbT6dbJni", "pages" : 0, "audioPlayStatus" : 0, "lastLatitude" : 0, "isLocationShared" : false, "moduleId" : 0, "replyMessageSubtype" : 0, "status" : 0, "timestampLocationSharing" : 0, "locationSharingStopped" : false, "senderId" : "61fe216793342b000a802c23", "lastLongitude" : 0, "fromUpdate" : false, "type" : 100, "uploadStatus" : 0, "replyMessageType" : 0 }, "messageId" : "P4EUOzfe7YhD5SbUT5loprKHbT6dbJni" }
//. Ios code let dic = ["recipientId": selectedMsgReceiverId, "messageId" : randomID , "payload": chatPayload] as [String : Any] SocketIoManager.sharedInstance.manager.defaultSocket.emitWithAck(SocketEventNames.newMessage.rawValue, [dic]).timingOut(after: 0) { data in print("Sagar===",data[0]) } Any fetch same issue. then please give the me solution