IONIC3 true machine test and Web end test results are inconsistent _ionic

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.