News

Visual Studio Mobile Center Adds React Native Code Signing

In another Microsoft embrace of competitive technologies, the Visual Studio Mobile Center -- serving as "mission control" for mobile apps -- now supports code signing of React Native apps via its new CodePush functionality.

CodePush, still in preview, was announced about two years ago, providing a way to update certain apps directly without going through an app store redeployment. It was just recently added to VS Mobile Center, which provides supporting back-end services for mobile apps.

React Native apps, being composed of interpreted JavaScript code, are among those apps. React Native might be seen as a competitor to Microsoft offerings such as Xamarin -- which uses C# -- and Visual Studio's built-in Apache Cordova projects, which use JavaScript for cross-platform mobile projects.

Nevertheless, in its new era of openness, Microsoft is continuing to add support for such third-party technologies in its developer tooling, adding support for code signing of React Native apps to CodePush right along with Cordova.

Code signing, a new addition to CodePush, was a feature requested by developers, Microsoft said. It enables them to sign application bundles and verify that downloaded bundles haven’t been tampered with. It can also be used to validate a developer's identity.

"Trust is everything, and you want to know that the code you shipped is the code you wrote," said Microsoft's Simina Pasat in a blog post earlier this month. "In response to popular demand, CodePush now supports code signing, so you can push digital signatures for bundles to be validated on the client-side prior to installation."

Pasat also detailed several other recent enhancements to VS Mobile Center, including:

  • Build scripts for the injection of additional logic into builds
  • Ability to export analytics data to Azure Application Insights
  • UI testing support for Android Oreo and iOS 11
  • Better in-app notifications for conveying the availability of new release updates
  • Faster bug-squishing

Build scripts let coders introduce custom build steps at three stages of a build, adding additional logic to supplement the basic build configuration options.

The new ability to store and explore analytics data in the Azure cloud platform's Application Insights -- "an extensible Application Performance Management (APM) service for Web developers on multiple platforms" -- lets developers dig deeper to glean meaningful insights via the Log Analytics tool.

iOS 11 Testing in Action
[Click on image for larger, Animated GIF view.] iOS 11 Testing in Action (source: Microsoft).

The new UI testing support for Android Oreo and iOS 11 -- both recently introduced by Google and Apple respectively -- involves the addition of new devices using the OSes to the Mobile Center Test device centers. Support for the new OSes has also been added to the Mobile Center SDKs. That, Pasat said, provides information about user behavior and can help developers pinpoint the causes of app crashes.

Testing is further improved in VS Mobile Center by the addition of named device sets, useful for developers who continually test their wares against the same set of devices on every test run. Customized combinations can now be encapsulated in named device sets for repeated test runs.

Developers backing their projects with VS Mobile Center can also now keep in closer touch with their users via in-app dialogs, which can notify users of available updates. Programmers can also provide notifications via other means, such as Microsoft Teams or Slack, by configuring a webhook. Another customization capability lets devs use Markdown to enhance their release notes, highlighting critical information that can be discovered by quickly scanning the text.

Finally, Pasat discussed new functionality that lets developers more easily fix critical bugs as soon as they're found.

"Once your app is instrumented and tracking events, every crash report links to the events that led to the crash," she said. "This way, you can more easily investigate why a crash happened. Additionally, when your app is crashing and new crash groups are created, you can choose to automatically create a bug in Visual Studio Team Services. We're actively working on supporting more integrations with other bug tracking solutions. If you want to be notified when a new crash group is created, you can also set up a webhook and you will get notifications through your application of choice."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Microsoft Further Embraces OpenAPI Spec (formerly Swagger)

    Microsoft has long embraced the OpenAPI Specification (formerly known as Swagger) for describing APIs, and it's now taking that support to the next level with a new online resource.

  • Get Good at DevOps: Feature Flag Deployments with ASP.NET WebAPI

    They provide developers with the ability to toggle features on and off without having to redeploy code, making it easier to manage risk, test features in production, and facilitate smoother releases.

  • Implementing k-NN Classification Using C#

    Dr. James McCaffrey of Microsoft Research presents a full demo of k-nearest neighbors classification on mixed numeric and categorical data. Compared to other classification techniques, k-NN is easy to implement, supports numeric and categorical predictor variables, and is highly interpretable.

  • Building Secure and Scalable APIs in .NET 8

    Tony Champion: "From giving you access to the entire lifecycle of a request, the ability to configure and extend authentication and authorization, .NET 8 gives you the power to create APIs to meet even the most demanding needs."

Subscribe on YouTube