Blackberry

BlackBerry Dynamics for iOS: Two Targets in One Xcode Project

When you integrate your existing app with the BlackBerry Dynamics SDK, you will need to create a separate version of your app with the BlackBerry Dynamics SDK. Depending on the complexity of your app, there are two routes you can consider for the source code management.

  1. Manage two separate source repositories/branches, one with the BlackBerry Dynamics APIs and another one without.
  2. Create two different targets of an iOS project and build two different IPAs.

I have a simple trick how to achieve the second option above and would like to demonstrate in the following steps. Setting up two targets in a project is useful when creating two IPAs from one project.

After following the steps, you will be able to create two different targets of a project, one with BlackBerry Dynamics SDK integrated and other without BlackBerry Dynamics SDK.

  1. Duplicate the target.

2. Change the Bundle Identifier of the duplicated target.

 

3. For Objective-C

a. Go to Build Settings and search for Preprocessor Macros.

b. Add the value DEVELOPMENT=0 in Debug and Release in the original target and DEVELOPMENT=1 in Debug and Release in the duplicated target.

4. For Swift

a. Go to Build Settings and search Swift Complier.

b. Add the value –DDEVELOPMENT to Other Swift Flags to only one of the targets and not both.

 

5. You can change some additional Build Settings, Info settings.

6. This is how to detect which target is build.

7. You can add new files to a specific target.

That’s it for now… Happy Coding!

 

Need Development Help? The BlackBerry Developer Community Forum has your Answer…

Join the conversation, engage with peers, share product ideas, and get your app development questions answered. This free BlackBerry Developer Program resource allows you to be part of a Developer Community that is at the center of all the information you’ll need to stay connected with the World’s leading Secure Development Platform for Enterprise. Read more about the Developer Community on our blog, and we encourage you to follow the Developer Community forum and join the conversations happening right now.

 


Source: Developer Blackberry

LIVE Enterprise Developer Webcast: Creating secure, cross-platform, enterprise applications using the new BlackBerry Dynamics Plugins for Cordova

Join us, as a member of the BlackBerry Solution Architect team guides you through an interactive journey on how to quickly secure your application using the new BlackBerry Dynamics Plugins for Cordova. We’ll be covering everything from Getting Started with the tools, setting up your environment, debugging, and most importantly working with the Plugins. Whether you’re new to BlackBerry Dynamics development, or a veteran, this live coding demo will offer you an inside perspective on how to quickly and efficiently build apps using our Cordova Plugins.

We will explore:

  • Installation & Configuration of the tools
  • Integrating the BlackBerry Dynamics Plugins
  • Testing & Deploying
  • Key Development Resources

WHEN: March 28, 2017 at 11:00 AM ET

Register and Join the Webcast HERE.

 

Need Development Help? The BlackBerry Developer Community Forum has your Answer…

Join the conversation, engage with peers, share product ideas, and get your app development questions answered. This free BlackBerry Developer Program resource allows you to be part of a Developer Community that is at the center of all the information you’ll need to stay connected with the World’s leading Secure Development Platform for Enterprise. Read more about the Developer Community on our blog, and we encourage you to follow the Developer Community forum and join the conversations happening right now.


Source: Developer Blackberry

Business Apps – Overview of Managed Android Devices

By: BlackBerry Elite, Ekke Gentz  / orgionally posted here on Mar.15, 2017.

If you’re developing mobile business apps sooner or later customers will request to debug, build and run on managed devices. This blog post is focused on Google for Work | Android (aka Android for Work).

Google for Work | Android

There are different ways to run work applications: devices may only contain work apps or private and work apps are installed together. From my experiences in most cases there are private and work apps together on devices. Read more about EMM (Enterprise Mobile Management) and different scenarios here.

There are some EMM solution providers:

  • BlackBerry
  • Mobileiron
  • VMware AirWatch

BlackBerry UEM 12.6

My examples are based on BlackBerry UEM 12.6 (formely known as BES 12)

You can try out UEM for 30 days (Cloud version) or 60 days (on-premises) for free.

Using a managed device is like working behind the firewall via VPN, but all is transparently managed by the EMM solution provider.

EMM Admin manages users, user groups, devices, policies and apps. Here you can download the policies for BlackBerry UEM. Get an overview of BlackBerry UEM here.

Development Stages (Dev, Test, Production)

Developing a new app there are typically 3 stages:

  1. develop UI with MockUp data (no access to servers needed)
  2. test against test environment
  3. release for production environment

Stage 1 I’m using GooglePlay Closed Beta Test to deploy the apps to beta testers from customer. Adding testers only gMail address is needed.

For stages 2 and 3 your device must be activated as Android for Work device or you should request a device to test on from your customer. This is the only way to get access to data servers behind the firewall – in most cases there will be no URL you can use from outside. One device can only be activated as work device for one server (BlackBerry UEM).

It’s highly recommended to test your APP as Work APP – the admin can forbid features (Bluetooth, NFC, Camera, …)

To manage apps your customer has to use a Google developer account to be able to publish apps through Google Play for Work.

Multi Android Package Names in Manifest

Attention: you must change the Android package name to enable your customer publishing the app to Google Play for work because the package name from stage 1 is already connected to your own Google developer account from Beta testing.

Also your Enterprise Customers can have different environemts for dev, test, production with different Google Developer Accounts to get a specific Play Store for Work for each environment. This means you must build releases for up to three or more different package names. Changing the package name manually in Android Manifest is not so comfortable. You can have a dynamic way following this blog article.

Best would be Qt Creator supports this directly using variables in .pro. see QTCREATORBUG-17863

Develop – Test – Release Workflow for Work APPs

Here’s an example workflow:

  • add your APP to Google Play Closed Beta Test (Android package name: my.example.beta)
  • deploy updates to beta testers until stage 1 finished
  • build release (Android package name: my.example.test) and send APK to your customer
  • your customer publishes APP to GooglePlay for Work
  • your customer creates user and profile for you and adds the APP to your user or user group
  • your customer sends an email to activate a device
  • you activate your device and install the APP from Google Play for Work on your device
  • now you can develop, build and run your APP from Qt Creator
  • build update releases and send to your customer
  • your customer publishes update to Google Play for Work so others can test your update

Hint: you can only build and run your app as work app if customer has published your app once to Google Play for Work and you installed it once !

Following pages will explain the steps in more detail:



Source: Developer Blackberry

Attention BlackBerry Dynamics Android Developers – SDK URL Update

Attention Android developers who are using BlackBerry Dynamics and installed the BlackBerry Dynamics SDK using Android SDK Manager. On March 22, 2017, we will be performing another step in the rebranding process (from Good Dynamics to BlackBerry Dynamics), which will include a change to the website domain.  This change will impact the Android SDK Manager as the user defined URL you added will no longer be available.  The impact to you will be that your Android SDK Manager will not detect updates to the BlackBerry Dynamics SDK.  The new URL is: https://global.blackberry.com/en/sdk/android/addon.xml

Along with the URL update, we are changing the way we handle export control restrictions. Instead of having to log in to the update site, we are now using IP geo-location blocking.  This means you won’t have enter your login credentials every time you check for updates.

The good news is you can easily update the user defined URL you have configured, without re-installing the BlackBerry Dynamics SDK.  Here’s how:

  1. Launch Android Studio
  2. Click on the Tools menu, select Android and then click on SDK Manager.

3.  Click on the SDK Update Sites tab.

4.  Select the BlackBerry Dynamics update site and click on the Edit button.

5.  Replace the existing URL with the new one, which is: https://global.blackberry.com/en/sdk/android/addon.xml

6.  Click the first OK button.

7.  Click the second OK button.

Your BlackBerry Dynamics SDK update site URL is now updated to the new location, allowing you to continue to receive notifications when we post new versions of the SDK.

 

Need Development Help? The BlackBerry Developer Community Forum has your Answer… Join the conversation, engage with peers, and get your app development questions answered.  Developer Community forum


Source: Developer Blackberry

BlackBerry World Spring App Picks

Birdie Up:

The wait is finally over! The first flowers and grasses awaken from hibernation and a cute little birdie too. After the long winter, it is hard to make the first flight attempt. Birdie Up is a simple yet addictive game. With a tap on the screen, the tiny bird makes a flap with its wings. The faster you tap, the faster the bird flies above and you get a bonus score. Try to get as high you can to beat your own high score and don´t be too upset if you lose. After all, it is spring time. http://appworld.blackberry.com/webstore/content/59956142/

РicMix for BlackBerry 10:

A picture is worth a thousand words, but multiple pictures in fancy frames, text caption and photo effects, are worth a MILLION stories. This spring, capture the beauty of all the blossom with PicMix. Combine your favorite photos into custom frames, finish it with a touch of fancy effects and share it with your friends on social media. You can even set it as your BBM™ or Twitter profile pictures. With many more features to play with, capture the scenery this spring and bring it to life with PicMix. http://appworld.blackberry.com/webstore/content/21971165/

Springy:

Springy is a fun little pet that likes to nibble on your finger. Playing this addictive game will wear your fingerprints off your fingers. Just move your finger around the screen for 20 seconds so he can’t touch it. If you lift your finger off the screen or move it into the status bar area, then the game is over. The closer Springy gets to your finger, the more points you get. Occasionally, a wall will randomly appear. Bounce Springy off the walls to get extra points. This spring, enjoy this enjoyable time passer on those rainy days. http://appworld.blackberry.com/webstore/content/20321211/

Rainy Day Theme: (BBOS only)

With the change in seasons it is only right to spice up the look of your BlackBerry device. So, this spring enjoy the monsoon with the Rainy Day Theme. This amazingly beautiful theme consists of rain falling on the ground and the beautiful wet glass wallpaper refreshes your mood and mind from all the outside noise. With features like high quality pictures, new clean and beautiful OS7 icons, and custom in call and outbound screens, your BBOS device will look as mesmerizing as ever!http://appworld.blackberry.com/webstore/content/119283/

Other apps worth checking out:

 


Source: Developer Blackberry

These events allow to you to share time with other replica watches sale watch lovers as well as learn about what the brands are up to. In the process, you'll get treated to rolex replica sale fabulous dinners, meet celebrities, receive gifts, and feel like a valued customer who the brands really want to rolex replica sale have a relationship with. Depending on where you live and the brands you like to purchase from, these events can be quite frequent, and also really fun. Their value should not be underestimated, and again, if you don't purchase rolex replica sale watches in an "official manner" you'll never be included. Personally, I have to say that while I don't like spending more money than I need to, the value of these above unexpected benefits, in many instances, can make up for the discounts replica watches available at gray market retailers when you want to buy a new watch. In a sense, each time you rolex replica sale purchase a high-end timepiece, you are designating yourself as part of a elite group of replica watches sale people who have the appreciation and resources for luxury items.