HockeyApp V-Play

Beta Distribution For Mobile Qt Apps & V-Play Games with HockeyApp & V-Play

By Alex

Testing your mobile game or app before releasing it to the app stores is a crucial task. Not only to find bugs but also to test the app’s user experience, balancing settings or just its long-term fun factor.

Cause of this we are happy to introduce a new plugin for beta testing your apps:

V-Play Qt 5 HockeyApp Plugin

HockeyApp V-Play

This post answers the following questions:

How Beta Testing Works

It might be easy to provide test versions to your colleagues within your company or team. But it is definitely hard to set up a deployment process to provide external testers with new versions. Especially when:

  • You are a single developer also responsible for QA. Your testers then are mostly scattered around the globe and you might only know them via Twitter or your support channels.
  • You or your company is developing a game or app for a customer who wants to test pre-release versions on a regular basis.

For that use cases both Apple and Google have solutions in place. Apple recently acquired TestFlight and offers it within iTunes Connect for beta testing. Google provides alpha and beta stages for your uploaded Google Play Store apps. Both however come with serious drawbacks: Apple requires you to submit your beta apps into their review process. This means you’re losing a lot of time from the upload of your app until it’s on the devices of your testers. Moreover Apple might reject it even before it reaches your testers’ devices. For Play Store beta distribution you need to invite your testers into a Google Group, which requires them to create a Google ID and then to wait some time until it hits the Google Play Store.

 

So instead of relying on platform-dependent services why not use a service that specializes in beta app distribution? And more, wouldn’t it be great if there would be such a service for Qt-based apps?

Say Hello to our new V-Play Qt 5 HockeyApp Plugin!

 

HockeyApp is an app distribution service for mobile beta app distribution. In comparison to Apple or Google it’s not bound to a specific platform. Instead it provides the functionality across iOS, Android and Windows Phone 8, a great match with the V-Play cross-platform philosophy.

Thanks to our new plugin it’s really easy to integrate HockeyApp’s functionality into your Qt or V-Play app or game, both for iOS and Android.

How Does HockeyApp Support Beta Testing?

As soon as you have a new app version ready for testing you can upload your build to HockeyApp and optionally notify your testers via email about the new version. The next time your testers open your app on their devices an alert notifies your testers about a new version of your app. You can even show release notes if you want.

Your testers can then update your app over-the-air without downloading any extra files to their computers. When you open HockeyApp’s dashboard you also get some insights how many and who of your users already are on the latest version and which devices they are using for tests.

HockeyApp Dashboard

How Can I Integrate HockeyApp to my Qt 5 App?

If you’ve ever added one of our other Qt 5 plugins to your app you already know how to do it:

  1. Download the HockeyApp plugin. You can either purchase it as a standalone plugin for one app. Or you go for a V-Play subscription and can use it for an unlimited amount of apps and games. There is also a test project available on GitHub which you can use for testing.
  2. After installation you can add it to your code like this:
import VPlayPlugins.hockeyapp 1.0

GameWindow {
  HockeyApp {
    appId: "<HOCKEYAPP-APP-ID>"
  }
}

The appId lets the plugin know which app it should use for updates. You can create a new app for beta distribution after registering at http://hockeyapp.net/.

For every new release of your project you can then follow these 3 steps:

Increase The App Version Number

HockeyApp identifies app updates by the version number of your uploaded builds. For a new update you therefore need to increase the number.

On iOS, you can set a new version number in your project’s Info.plist file:

<key>CFBundleVersion</key>
<string>18</string>
<key>CFBundleShortVersionString</key>
<string>0.18</string>

The CFBundleShortVersionString variable is the version name that is displayed to your users whereas the CFBundleVersion is used internally by HockeyApp to identify a new version.

On Android, set the version number in your project’s AndroidManifest.xml file:

<manifest … android:versionName="0.18" android:versionCode="18" … >

Again, the android:versionName variable is the version name that is displayed to your users whereas the android:versionCode is used internally by HockeyApp to identify a new version.

If you’re using V-Play these files are already in place in your project’s android & ios subfolders, if you’re starting from scratch you first have to copy the autogenerated files from a previous build and add the following lines to your Qt project file:

# iOS
ios {
  # Path to custom Info.plist file
  QMAKE_INFO_PLIST = ios/Project-Info.plist
}

# Android
android {
  # Path to directory containg custom AndroidManifest.xml file
  ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
}

If you’re developing a V-Play game also make sure to increase the versioncode and versionname properties in your project’s config.json file. This also means that you need a new license key from https://v-play.net/developers/license/.

Create a Release Build

After adapting your project files you can create your beta app binaries. Change the build target in Qt Creator to “iphoneos-clang” or “Android for armeabi (-v7a)” and select the “Release” build type.

Select Qt Build Target

When using V-Play also make sure to set the “stage” property to “publish” within your project’s config.json file.

This is also a good time to add all your QML files to a resource file and disable the deployment folder, otherwise your source files are shipped as plain text files to your testers. V-Play makes changing from QML files with DEPLOYMENTFOLDERS to resources very easy: you do not need to change any paths in your QML logic, as V-Play does this automatically for you. For more details what steps are involved at changing, and why it is beneficial to only switch to resources at publishing, see here.

Build And Upload The Binaries for HockeyApp

As the last step, you can now build the binaries. Depending on your target platform follow these steps:

iOS

  1. Clean your project, select “Run qmake” from Qt Creator’s “Build” menu and open the resulting Xcode project from the shadow build directory
  2. Select your distribution provisioning profile for the “release” build type (you probably have to create a new one at https://developer.apple.com/account/)
  3. Run the “Archive” option from the “Build” menu from within Xcode
  4. Upload the resulting build to HockeyApp.

You can either upload a build manually on the HockeyApp dashboard or a lot easier, you can use the HockeyApp Desktop. Just make sure to open the app before creating your build, as soon as the “Archive” built steps succeeded, HockeyApp then asks you if it should upload the newly created build.

HockeyApp Mac OS X App

Android

  1. Add signing settings to your project within Qt Creator’ Projects settings:
    Qt Creator Android Signing Settings
  2. Clean your project, select “Run qmake” from Qt Creator’s “Build” menu and finally build the app
  3. Upload the resulting APK file to HockeyApp with the help of the HockeyApp desktop app or on the dashboard. The APK file can be found at “<shadowbuild-dir>/android-build/bin/QtApp-release.apk”.

Congrats! The next time your testers open your beta app they get notified about latest uploaded version and can install it over the air.

Get Started with HockeyApp

That’s all you need to know to get started with V-Play’s HockeyApp Plugin!

You can now begin by installing the plugin like described here. The plugin is included in your V-Play Indie subscription plan & above for your V-Play games or as a standalone Qt 5 plugin for your Qt apps. It is available both for iOS & Android apps.

For an easy start you can download our sample project from GitHub, which already comes pre-configured for HockeyApp. Just replace the app identifiers in AndroidManifest.xml & Project-Info.plist, add your own HockeyApp app id and you’re ready to go!

 

Download HockeyApp Now

 

For further information have a look at our official documentation and ask your questions in our support forums.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support
Sign up for Free and start developing right away!
I want to make Games
I want to make Apps
Game Development
Cross-Platform, Any Resolution

Use one IDE to deploy to all supported platforms, including iOS and Android, from a single code base.

Support all screen resolutions, aspect ratios and sizes with auto-adapting UI elements, smart scene scaling and memory efficient asset selection.

Learn More

V-Play ranked #1 at research2guidance cross-platform tool benchmarking 2014 by 2188 developers comparing 40 leading tools.

Multiplayer

V-Play Multiplayer supports both real-time and turn-based gameplay, so you can use it to make many different types of cross-platform multiplayer games. It's perfect for making player-vs-player games like 'Words with Friends' or games for a large amount of players, such as 'Clash of Clans'.

Learn More Video

Highscores & Achievements

The V-Play Game Network is a cross-platform gaming service that allows players around the world to compare game highscores and achievements. Players can also challenge each other across multiple platforms and share their progress on Facebook.

Learn More

QML & JavaScript

Qt Meta Language is a highly intuitive reactive language, which is super easy to learn, yet it's extremely powerful and flexible. Mix it with JavaScript to create awesome stuff, with just a few lines of code.

import QtQuick 2.0
import VPlay 2.0

GameWindow {
  Scene {
    
    SimpleButton {
      anchors.centerIn: parent
      text: "Press Me"
      onClicked: {
        console.debug("Wow you pressed me!")
      }
    }
  }
}

Learn More

Monetize & Analyze

With V-Play, you can use many 3rd party services for ads, in-app purchases, analytics and more, with just a few lines of code. All of these plugins work cross-platform, which allows you to maintain a single code base.

Learn More

Level Editor

The LevelEditor can be used during development to create and modify levels for your game, which you can then bundle in your final publishing build. Additionally, you can also integrate the in-game level editor to your published game and let your gamers create new levels.

Learn More Video

Card Game like UNO, Hearthstone or Poker

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/OneCard/OneCard.pro

Match-3 like Candy Crush Saga

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/JuicySquash/JuicySquash.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/JuicySquashAdvanced/JuicySquashAdvanced.pro

Puzzle like 2048 or Threes!

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/2048/2048.pro

Casino like Big Win Slots

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/FlaskOfRum/FlaskOfRum.pro

Side Scroller like Jetpack Joyride or Flappy Bird

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/FlappyBird/FlappyBird.pro

Tower Defense like Castle Defense or Bloons TD

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/Squaby/Squaby.pro

Falldown & Jump like Doodle Jump or Mega Jump

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/ChickenOutbreak/ChickenOutbreak.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/ChickenOutbreak2/ChickenOutbreak2.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/DoodleJump/DoodleJump.pro

Platformer like Super Mario or Lep's World

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/Platformer/Platformer.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/PlatformerWithLevelEditor/PlatformerWithLevelEditor.pro

Action like Angry Birds, Fruit Ninja, Cut the Rope

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/StackTheBoxWithCommunityEditor/StackTheBoxWithCommunityEditor.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/BalloonPop/BalloonPop.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/CarChallenge/CarChallenge.pro

Arcade like Arkanoid or Space Invaders

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/demos/ZombieBreak/ZombieBreak.pro

Community like Super Mario Maker or Minecraft

We got a demo game for you!

The V-Play SDK includes an open-source demo for this game genre. You can use its source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/examples/Squaby/Squaby.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/StackTheBoxWithCommunityEditor/StackTheBoxWithCommunityEditor.pro

<Path to V-PlaySDK>/Examples/V-Play/demos/PlatformerWithLevelEditor/PlatformerWithLevelEditor.pro

Any other Idea? let us know how we can help you

You are looking for another demo?

The V-Play SDK includes many open-source demos for different game genres. You can use their source code and build your game in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

If you do not find your game genre in this list and wonder if V-Play is the right choice, just contact us, we are happy to help!

Contact Us

App Development
Better Apps, Less Effort

Develop feature-rich, cross-platform mobile apps from a single code base.

V-Play apps look, feel and perform exactly like native iOS, Android and Desktop apps. With less code & much faster development time.

Learn More Highlights Video

V-Play ranked #1 at research2guidance cross-platform tool benchmarking 2014 by 2188 developers comparing 40 leading tools.

Save Time, Code & Money

Save up to 90% source code with V-Play, compared to frameworks like Xamarin, Titanium, React Native and others.

Learn More

QML & JavaScript

Qt Meta Language is a highly intuitive reactive language, which is super easy to learn, yet it's extremely powerful and flexible. Mix it with JavaScript to create awesome stuff, with just a few lines of code. QML also allows you to easily create smooth and complex animations.

import QtQuick 2.0
import VPlayApps 2.0

App {
  Page {
    
    AppButton {
      anchors.centerIn: parent
      text: "Press Me"
      onClicked: {
        console.debug("Wow you pressed me!")
      }
    }
  }
}

Learn More

Monetize & Analyze

With V-Play, you can use many 3rd party services for ads, in-app purchases, analytics and more, with just a few lines of code. All of these plugins work cross-platform, which allows you to maintain a single code base.

Learn More

Native Sensors & More

V-Play Apps harness the power of Qt, the leading cross-platform development framework used by over 1,000,000 developers.

This gives your access to native device features like sensors, camera, file system as well as multimedia, networking, localization and much more.

Learn More

Responsive Design

V-Play has built in responsive design capabilities, you can target phones and tablets with the same source code.

Learn More

Highly Extensible

You have existing JavaScript, C++ or native code? You want to add any 3rd party SDK that we do not offer already?

No worries, you can add any JS, C++, Java or Objective-C code to your project.

Learn More

Component Showcase App shows the most important V-Play features and components

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/showcase/Showcase.pro

Qt World Summit Conference App a full-featured conference management app made by V-Play

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/qtws2016/QtWS2016.pro

Twitter App how to build layouts like in the official Twitter app for iOS and Android

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/twitter/Twitter.pro

Maps App displays free bikes or boxes at bike stations for Vienna's bike sharing service Citybike Wien

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/maps/Maps.pro

Messaging App demonstrates how to create the UI of a Facebook Messenger like app

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/messaging/Messaging.pro

Weather App how to include powerful animations into your user interface

We got a demo app for you!

The V-Play SDK includes an open-source demo for this app type. You can use its source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play.

<Path to V-PlaySDK>/Examples/V-Play/appdemos/waether/Weather.pro

Any other Idea? let us know how we can help you

You are looking for another app demo?

The V-Play SDK includes many open-source demos for different app types. You can use their source code and build your app in record time. After installing V-Play, you can simply open the .pro file with Qt Creator, the development environment used for V-Play..

If you do not find your app type in this list and wonder if V-Play is the right choice, just contact us, we are happy to help!

Contact Us