Here, the 0000-0000-0000-0000-000000000000 shown in the example is an arbitrary representation of a App Center project app secret. In this example, you're adding an element with a name attribute with a value of APP_SECRET, and a value attribute with the value shown in the example. Open the Apache Cordova project's config.xml file for each of your Apache Cordova project's target platform elements (only Android and iOS today), add a child preference element in the following format: You must configure the project with your App Center project app secret before you can use the App Center SDK in your Apache Cordova project. You should add cordova-plugin-appcenter-analytics and cordova-plugin-appcenter-crashes most every app that uses App Center they provide useful information for developers without any additional setup or coding. To add plugins for all of the App Center capabilities to your project with one command, execute the following command: cordova plugin add cordova-plugin-appcenter-analytics cordova-plugin-appcenter-crashes To add support for App Center Crashes to your project, execute the following command: cordova plugin add cordova-plugin-appcenter-crashes To add support for App Center Analytics to your project, execute the following command: cordova plugin add cordova-plugin-appcenter-analytics Start by opening a Terminal window or Windows command prompt, then navigate to your Cordova project's root folder. Add the App Center SDK to your Cordova project using the instructions provided in this section. Add the App Center SDK to the project Installing the SDKįor Apache Cordova projects, the SDK is distributed through standard Apache Cordova plugins. Access the menu in the page's upper right corner, then select the Copy app secret item to copy the app secret to the clipboard.ģ. Locate the app secret on the application project's Settings page.Click the Add new app button on the bottom-right corner of the page.Select the appropriate OS for your application project (Android or iOS only), then select the Cordova platform option. Enter a name for your application project, adding an optional description as needed.In the App Center Dashboard, click the Add new drop-down in the upper-right corner of the page.Register for an App Center account, or Login to an existing App Center account at.If you don't have an application created in the App Center Dashboard, complete the following steps. Access the menu in the page's upper right corner, then select Copy app secret to copy the app secret to the clipboard. You can also the app secret on the application project's Settings page. If you have an existing App Center application project, access the App Center Dashboard, and open your project. You'll learn later how to configure the App Center Apache Cordova SDK with this value, but for now, lets see where to find it. In order for the App Center SDK to connect with your application project in App Center, the SDK needs your App Center project's App Secret. To determine the cordova-android and cordova-ios versions, open the project's config.xml file, you'll find the platform engines defined in the engine elements shown below: To determine your Cordova CLI version, open a terminal window or Windows command prompt and execute the following command: cordova -v Prerequisitesīefore you begin, ensure that your Apache Cordova application project meets the following minimum requirements: In this article, you'll learn how to add the App Center SDK to your Apache Cordova applications, then configure App Center Analytics and App Center Crashes capabilities in an application. The App Center SDK uses a modular architecture so you can easily use one, several, or all of the App Center services in your Apache Cordova application. Find more information in the App Center blog. Support for Cordova Apps has ended in April 2022.
0 Comments
Leave a Reply. |