Cloudkibo / Android

0 stars 0 forks source link

Why some messages are sent and some are in pending #594

Closed jekram closed 7 years ago

jekram commented 7 years ago

@sojharo

I am sending to multiple users - why some messages are sent and why some are in pending.

screenshot_20170515-191418 screenshot_20170515-191258

jekram commented 7 years ago

screenshot_20170515-191031 screenshot_20170515-191130

jekram commented 7 years ago

@sojharo Please let me know if want me to do any test with you

sojharo commented 7 years ago

Yes Sir, I would look into this issue. I think it might be regression issue. Currently, I am testing with zarmeen. I would do android testing once I complete the screen sharing work so that we have all the functionality to test.

sojharo commented 7 years ago

I had worked on this yesterday but the issue wasn't reproduced on my side. I also tested again today in morning. My messages are correctly being delivered.

jekram commented 7 years ago

For some of my contacts it was working and for other it was not.

The key question is not it is working for you, but how do we debug this as it will happen again.

Have you looked into the server for these messages? what the status is?

sojharo commented 7 years ago

Yes, I also looked into the logs and they were according to the flow. i.e. message received by server from sender, then push notification was sent to recipient. when message was fetched then push was sent to sender to inform that message is delivered.

I couldn't find the 3 days ago logs as they have gone in papertrail. However, I kept sending messages to my numbers yesterday to reproduce this and checked logs.

jekram commented 7 years ago

@sojharo What is the plan to debug this when it happens agin? We cannot have these issues and not have a plan on how to debug it.

sojharo commented 7 years ago

I am able to reproduce this issue and I have understood why it wasn't shown in logs being sent. As we were sending messages to multiple people very quickly. We were moving between the screens so fast that the code being executed on one screen got stopped when we went to other screen. Therefore, the logs were also not sent to server during that time. The ultimate way to debug them is to use our logs and acra.

On Mon, May 22, 2017 at 12:22 PM, Cloudkibo notifications@github.com wrote:

@sojharo https://github.com/sojharo What is the plan to debug this when it happens agin? We cannot have these issues and not have a plan on how to debug it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Cloudkibo/Android/issues/594#issuecomment-303019514, or mute the thread https://github.com/notifications/unsubscribe-auth/AFitCTXNoVQ6UxZraWrFrPxShXD73zH3ks5r8TewgaJpZM4NcHMz .

-- Regards,

Sojharo

jekram commented 7 years ago

Thanks for the analysis. BTW: I was only sending multiple sends to one users before moving on to next user.

sojharo commented 7 years ago

I have now fixed this problem and tested the code by repetitive runs. This problem is not happening now when I tried changing screens quickly while sending messages. I also tested sending multiple messages to the same user.

jekram commented 7 years ago

Thanks