Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios Problem while emitting JSON object #176

Open
paghadalsagar opened this issue Aug 9, 2022 · 0 comments
Open

ios Problem while emitting JSON object #176

paghadalsagar opened this issue Aug 9, 2022 · 0 comments

Comments

@paghadalsagar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant