EMDK with multiple product flavors & different application ids

C Charles Berlin 2 years 11 months ago
1 1 0

When using Android Studio 3.0 with one product flavor and two build types (release & debug) the emdk works as intended.  I have the EMDKConfig.xml file in /assets folder and everything syncs up nicely.  The problem comes in when I have different build flavors that change the application id, the use case for this is to provide my testers with a test version of the app along side the production version, so i will have two product flavors, prod & qa.  The qa build flavor uses an appendix to the the application id, "com.example.app.qa".  When I do this the broadcast for the scanner is not being received in my app, however the initialization of the emdk does not fail, it still returns successfully.
 
Here is an example of my product flavors
 
productFlavors {
  prod {
  resValue 'string', 'app_name', "Application"  }
  qa {
   applicationIdSuffix ".qa"   resValue 'string', 'app_name', "Application-QA"  }
}
 
Any ideas why changing the application id breaks the scanning?
 
p.s. - Device is TC70 with Android 4.4

Please register or login to post a reply

1 Replies

V Vedsatx Saddvv

Hi Joseph,

I wrote a blog about using different flavours with the EMDK: Deploying an application to Zebra Android devices ranging from Jellybean to Marshmallow and beyond – DARRYN CAMPBELL BLO…  , in it I discuss using different source sets for the different EMDK XMLs.  It has been nearly a year since I wrote the blog and I have not looked at it since so my memory is a bit rusty but hopefully that helps.

CONTACT
Can’t find what you’re looking for?