Initially I though this is my internet ISP provider issue, then thought it?s the router issue, later when I started to use my laptop I have not experienced the same issue. The issue only persists for my home WI-FI The issue does not occur if I am using the mobile data the internet stays connected for a very long time the same issue does not occur if I am connected to my office WI-FI or restaurant WI-FI. At times when I keep the phone in idle the internet connection goes off, which I am not even aware of and I tend to miss important mails. This is totally irritating, I must toggle ON & OFF switch for wi-Fi under settings options (which is not a big deal, but yet) every time to make the internet active. I must turn off the Wi-Fi then turn it on to make it work, and after a period of time the issue re-occurs. The internet connectivity on the home Wi-Fi keeps disconnecting.
Experienced no issues at all, later switched to apple for a year then came back to Android with same Samsung S7 edge device, after the release of S8 & S9. I have used Samsung S7 Edge in the year 2016 & 2017 two years.