SwiftChatApp
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
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
Hi @pandae8686 and @AfrazCodes . I have same issue on real devices. Did you fix that?
Thanks.
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
@phatnguyen1006 No, I was waiting for @AfrazCodes to help me out.
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.
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