Visual Studio App Center

Send your event data from RudderStack to Visual Studio App Center.

App Center is Microsoft’s cross-platform build automation and management platform that lets you seamlessly manage your app’s lifecycle. With App Center, you can easily manage and automate your builds, effectively test your apps in the cloud, and monitor their real-time usage with the help of crash data and analytics.

RudderStack lets you send your event data to App Center via its native web SDKs.

Connection compatibility

Destination Information
  • Status: Generally Available
  • Supported sources: Android (Java) , Android (Kotlin) , iOS (Obj-C) , iOS (Swift) , React Native , Cordova, Flutter
  • Refer to it as App Center in the Integrations object.
Connection Modes
SourceCloud modeDevice modeHybrid mode
AMPsupportednot supportednot supported
Android (Java)supportedsupportednot supported
Android (Kotlin)supportednot supportednot supported
Cordovasupportedsupportednot supported
Fluttersupportedsupportednot supported
iOS (Obj-C)supportedsupportednot supported
iOS (Swift)supportednot supportednot supported
React Nativesupportedsupportednot supported
Shopifysupportednot supportednot supported
Unitysupportednot supportednot supported
Websupportednot supportednot supported
Supported Message Types
SourceIdentifyPageTrackScreenGroupAliasRecordAudienceList
Cloud mode
Supported sourcesnot supportednot supportedsupportednot supportednot supportednot supportednot supportednot supported
Device mode
Android (Java)not supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
Cordovanot supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
Flutternot supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
iOS (Obj-C)not supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
React Nativenot supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported

Get started

Once you have confirmed that the platform supports sending events to App Center, perform the steps below:

  • From your RudderStack dashboard, add the source and select App Center from the list of destinations.
  • Name your destination, and click Next. You should be able to see the following screen:
Connection settings for App Center destination
  • Enter the relevant details and click Next to complete the setup. The API Secret Key can be found as App Secret on the Getting Started page or Settings page on the App Center portal.

Adding device mode integration

Once you add App Center as a destination in the RudderStack dashboard, follow these steps to add it to your mobile project depending on your integration platform:

To add AppCenter to your React Native project, follow these steps:

  1. Add the RudderStack-App Center module to your app as shown:
bash
npm install @rudderstack/rudder-integration-appcenter-react-native
## OR ##
yarn add @rudderstack/rudder-integration-appcenter-react-native
Make sure the minSdkVersion of your build.gradle in the root of android directory is atleast 21
2. Run `pod install` inside the `ios` directory of your project adding `@rudderstack/rudder-integration-appcenter-react-native` to your project. 3. Finally, import the module you added above and add it to your SDK initialization code:
typescript
import rudderClient from "@rudderstack/rudder-sdk-react-native"
import appcenter from "@rudderstack/rudder-integration-appcenter-react-native"

const config = {
  dataPlaneUrl: DATA_PLANE_URL,
  trackAppLifecycleEvents: true,
  withFactories: [appcenter],
}
rudderClient.setup(WRITE_KEY, config)

Track

A track call lets you track custom events as they occur in your web application.

A sample track call looks like the following:

objectivec
[[RSClient sharedInstance] track:@"Product Clicked" properties:@{
    @"product_id" : @"pr01",
    @"name" : @"Cadbury"
}];
The above track call is directly passed on to App Center via its trackEvent api in both the RudderStack Android (Java) and iOS (Obj-C) SDKs.

The eventProperties object should only contain the values of type String and Number- the other property types will be simply ignored, if sent.

For example, if eventProperties is set as:

javascript
{
  "colours": [
    "red",
    "black"
  ],
  "city": "New Orleans",
  "state": "Louisiana"
}

then RudderStack will send the data to App Center as:

javascript
{
  "city": "New Orleans",
  "state": "Louisiana"
}

Screen

The screen method allows you to record whenever a user sees the mobile screen, along with any associated optional properties. This call is similar to the page call, but is exclusive to your mobile device.

A sample screen call using the RudderStack Android (Java) SDKAndroid (Java) refers to the legacy RudderStack Android SDK. Note that it will be deprecated soon.

For new implementations, use the Android (Kotlin) SDK instead.
looks like the following code snippet:

objectivec
[[RSClient sharedInstance] screen:@"Home" properties:@{
    @"category" : @"launcher"
}];

In the above snippet, RudderStack captures the information related to the screen being viewed, such as screen’s name and category.

The above screen call is directly passed on to App Center as a track event via its trackEvent API, with event name as Viewed {screen name} screen along with the its properties. The above example will be sent as a track event with name Viewed MainActivity screen along with its properties.

Opting in/out of sending user data to App Center

Any users visting your app can express their consent over sending data to App Center. Based on this consent you can either opt in or out of sending that user’s data to App Center.

Refer to the section below for more details on how to use this feature.

Firstly import the AppCenterIntegrationFactory as shown below:

javascript
import {
  enableAnalytics,
  disableAnalytics,
} from '@rudderstack/rudder-integration-appcenter-react-native';

Then add the below script just after the initalization of the React Native SDK:

  • To enable App Center Analytics:
javascript
await rudderClient.registerCallback("App Center", () => {
  enableAnalytics();
});
  • To disable App Center Analytics:
javascript
await rudderClient.registerCallback("App Center", () => {
  disableAnalytics();
});

FAQ

How do I get the App Center API secret?

The API Secret Key can be found as App Secret on the Getting Started page or Settings page on your App Center portal.

What is transmission interval?

The App Center SDK uploads logs in a batch of 50. If the SDK doesn’t have 50 logs to send, it will still send logs after 3 seconds (set by default). There can be a maximum of 3 batches sent in parallel. In this case, this interval of 3 seconds is the transmission interval. Note that the value of this transmission interval must always be between 3 seconds and 86400 seconds (one day).

Questions? Let's figure it out together.

Join the RudderStack Slack community to connect with other users, customers, and the RudderStack team — or reach out for direct support.