Unable to install different flavours of SunbirdEd-mobile app in same phone for android #12
-
We have taken the latest code from the release-4.6.0 branch and created a new flavor of the android app(called APEX) . On testing, we have identified that the Apex app can't be installed on the phone having the Diksha app and vice versa. This same issue happens between staging, pre-prod, and prod build of Diksha also. On further investigation, we found that the issue is with cordova-plugin-document-viewer. Error while trying to install
Cause for issue Only for the Document viewer plugin, the appId is not taken from env variables instead it's taken from config.xml. Solutions tried
We are holding back the release of our app as the users having the Diksha app on their phones will not be able to install the Apex app. cc- @vijiurs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@kiranharidas187 This has been limitation introduced since document-viewer plugin . It tries to register based on packageID during installation. There can be two solutions to this: @luckynvdu This is a valid tech debt for the Mobile App |
Beta Was this translation helpful? Give feedback.
@kiranharidas187 This has been limitation introduced since document-viewer plugin . It tries to register based on packageID during installation. There can be two solutions to this:
a) Either take a fork of plugin where it tries to register itself under a dedicated package as prefix.
b) We may have to remove the dependency from code base for this plugin. (i.e. trying to find alternate flows where this plugin is used).
@luckynvdu This is a valid tech debt for the Mobile App