Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

what triggers the waConfig.Wac.GetConnected() == false? #524

Open fakhripraya opened 3 years ago

fakhripraya commented 3 years ago

when i develop my server side app i notice when i send my whatsapp message sometimes it will fail and i need to restart the server,i go deeper with this problem and i found out that waConfig.Wac.GetConnected() is set to false from true after a while and cause me to unable to send message , can i get the solution from this?

danielspk commented 3 years ago

Hi @fakhripraya.

Is your cell phone active? (unlocked). I face the same problem and I can only solve it by unlocking the home screen of the cell phone (the connection is alive again).

fakhripraya commented 3 years ago

@danielspk my cell phone is active the whole time, im not sure locking the cell phone disconnect it