Ionic development, mobile phone online testing

Source: Internet
Author: User

1. Download Devapp

Devapp can be used on iOS and Android.

2.

using Devapp

Devapp found ionic serve An instance that runs on the local network and requires the latest version of the Ionic CLI (at least version 3.13.2).

first, make sure that you are running the latest version of the Ionic CLI. Run npm install -g ionic . If this does not work, try uninstalling and reinstalling, npm uninstall -g ionic and then run the install command again.

once the latest CLI is installed, ionic serve -c Run the application of your choice on your computer and let it complete the build. Next, turn on your iOS or Android device and connect to your computer over a wireless network the same network . Open Devapp and you will see that your local application is displayed in the list.

Capturing console logs

to ensure that you receive the console logs generated from the application, the log is displayed in ionic serve the in the terminal window that you are running , set the -c flag added to ionic serve :

Trouble Shooting

If you don't see your app in the list, try the following to fix the problem:

    1. first, make sure that you are on the same network as the application. Double-check your WiFi connection settings.
    2. Attempt to force exit Devapp and restart it
    3. try ionic serve -c Restart on the computer .

If these things still do not solve the problem, make sure that you do not have any custom network settings that could cause your application to fail to discover the service instance.

Ionic development, mobile phone online testing

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.