The last time I did a app to start the network monitoring function, but found that app in the web-side test and the results of the real machine test is inconsistent, shown in the following figure (both are connected to the network)
Web End Results
True Machine test Results
And when the real machine tests, no matter what type of network connection or even not networking, are displayed "Unkown network", I was very puzzled, because the code did not change, after repeated investigation (tears, this problem for small white to spend a day more time to solve, learning sincerity is a repeatedly, Indomitable process) finally found that the platform should be packaged out of the problem (specifically what the problem I do not know, feel very fascinated), so use "Ionic Cordova Platform RM Android" remove the original platform and then add again to solve the problem. If this method does not work, try overwriting the Platform folder copy in the other Ionic app project file into the problematic project file (in fact, I just started to delete the platform, but the discovery didn't help, and then it worked, so it was really a real mystery, The inconsistencies in the reader should be the problem with the platform packaging, and you can try these two methods.