SwiftChatApp icon indicating copy to clipboard operation
SwiftChatApp copied to clipboard

The App works fine in the simulator but when we check in the actual iPhone devices - The chats don't update in real time

Open pandae8686 opened this issue 3 years ago • 5 comments

Hi @AfrazCodes ,

Such an amazing series and I really enjoyed watching it and building the chat app along with you.

Need your help to fix one the major issues I had while testing the app using iPhones

The issue I am having is outlined below

  • When you run the app using 2 simulators - the chats update in real-time and it works fine
  • However, when you use any iPhone devices to test the app, in this case I have used two iPhones to check side on side to see if its working fine and it's so weird that the chats won't update in real time
  • It's also astonishing to note that in the chats table (where we see all the conversations with various people) - The new chat messages can be seen alongside the name in the table view but when you click on the chat and get redirected to the conversations view, the messages don't appear

I will try debugging to see if I can fix it but any insights from you would be a great help.

Thanks

Regards,

Aditya Pandae

pandae8686 avatar Apr 25 '21 05:04 pandae8686

Hi @pandae8686 and @AfrazCodes . I have same issue on real devices. Did you fix that?

Thanks.

phatnguyen1006 avatar Nov 16 '21 17:11 phatnguyen1006

Hi @pandae8686 and @AfrazCodes . I have same issue on real devices. Did you fix that?

Thanks.

Hey, did u find solution? If u find it, please write me

iosconstantine avatar Nov 16 '21 18:11 iosconstantine

@phatnguyen1006 No, I was waiting for @AfrazCodes to help me out.

pandae8686 avatar Nov 26 '21 05:11 pandae8686

Hi @pandae8686 , I think I solved this problem. I was working on internationalization and localization. @AfrazCodes Create the message ID with the date. The difference in the language of the identifier was the cause of this problem. I wrote this in dateFormatter and the issue was resolved. formattre.locale = Locale(identifier: "en_us") I hope you find it useful.

JawaherAbuLahsah avatar Feb 20 '22 17:02 JawaherAbuLahsah

Hi @pandae8686 , I think I solved this problem. I was working on internationalization and localization. @AfrazCodes Create the message ID with the date. The difference in the language of the identifier was the cause of this problem. I wrote this in dateFormatter and the issue was resolved. formattre.locale = Locale(identifier: "en_us") I hope you find it useful.

Awesome, thanks a lot @JawaherAbuLahsah

pandae8686 avatar Feb 21 '22 05:02 pandae8686