Remember, you don’t need to add high-level programs, so focus on the corresponding operating system, but the processes of all operating systems are almost the same. For this post, I have a lot of content that can be used publicly, so I made an old podcast Application Co hosted by a game of two halves. On the app public page of phonegap build. Apk can be ed. The
Before you start, web applications can be easily tested using simulators, but mobile applications are much easier to test on real devices. As mentioned above, Android is the easiest operating system to test. If there is no Android device, you can use this as an excuse to buy a device or use an old device that is dusty somewhere. If you have never used PGB before, you must create an account. PGB has a free program that allows a single non-public application (which can be generated by uploading a zip file) or an unlimited open source application (which must be imported from the public GitHub repository). The
If you start with Pb, the application update and reconstruction process will be smoother, so it is recommended to use it with GitHub. This also means that you can log in to PGB using GitHub credentials. Step 1. Generate PGB app files most of the app files are logo and flash screen! Index HTML, the most important config. The structure with root directory containing XML, two PNG format default icon files, and res directory is very simple, including operating system specific icons for home page and flash page. Step 2. It is important to create an application icon application icon. The application is used when adding an icon on the main screen of the device, and when opening the application, it is used as the icon of the startup screen. The
To generate an icon, use the app icon, create an app icon, and other services. They tend to use the same file name, so the original icon design (PNG format, 1024 for both services) × 1024), run the service, and then the appropriate image to the correct folder. The third stage. App configuration all configurations are config. Included in the XML file. For your own application, you must change the following: Part @id – the Convention is the domain name of the reverse site. Add app suffix. Name – the title of the site. Description – short description of the web site author (@email, @href) – your details content @src – change to the home page of the web site access@origin – determine the web site that the application can browse. The two extreme methods are to enter the domain name, restrict the application to only browse websites or use \
In addition, you can see that the application has multiple icons and gap:splash elements, which can be used for the home page of the device and the apps flash page. If you move the created icon to the correct folder, you will find that there is nothing to change here. Note, however, that names are case sensitive! Step 4. Start the PGB build process, navigate to the PGB website and log in. Of course, an empty application screen is displayed. It is much easier to use phonegap build with GitHub. Suppose you log in as a GitHub account and build an open source application. All GitHub public distributions can be used in find existing distributions, so click the arrow, select the distribution, and then click the pool in the GitHub distribution. The
After PGB is imported into the repository,
Display. After PGB imports the file from GitHub, it is ready to build. Click build ready to complete. Now you can change the page to see how the build is progressing. By default, PGB will try to build applications for IOS, Android and windows 8. Red indicates that the build failed, and blue indicates that the build was successful. Male PGB will be built for Android, IOS and windows. Blue is success. If PGB is not provided with the IOS developer certificate that must be added to the above IOS Developer program, IOS always fails. But I hope the Android build has been successfully completed and is ready for testing! Click the Android icon. Apk can be ed. Otherwise, on the Android machine. A simpler way to get the APK is to navigate from the Android device to the public page of the application (helpful 2D code), and then label the Android link. In that case. Apk will be ed to the device, just navigate to and click file to install the application. Another alternative is to access the PGB website from an Android device. Regardless of the method used, the application icon can now be found on the home screen (unlike the icon expected, there may be invalid URLs in the config.xml file). After clicking the icon, the application will open, the welcome screen will be displayed, and the home page of the website will be displayed (there may be some delay from the welcome screen to the website according to the device specification). Congratulations. You built your first application! How good it is depends entirely on how you set up your WordPress site, but the advantage now is that in order to improve it, you just need to work on WordPress. If you need to rebuild the application for any reason, such as an incorrect image URL, do the following: In the GitHub repository, navigate to the app page of file update PGB and click code update. Then import the file from the GitHub repository. PGB must automatically start the reconstruction process – if everyone does not click on reconstruction, barrest of bones is the most basic type of mobile application. Naturally, \