I'm trying to install 2 different Apps (built with Phonegap Build) on my Android Phone. Both Apps have a different id (config.xml).
The installation of the first App works fine.
Problem : When I try to install the second App, I get an error : App cannot be installed. Without any further explanation.
I think the problem is caused because both apps have the sameversion (config.xml) ...
But I cannot image that 2 apps with different id's need to have seperate version numbers ?
Can someone help me with this issue please ?
The installation of the first App works fine.
Problem : When I try to install the second App, I get an error : App cannot be installed. Without any further explanation.
I think the problem is caused because both apps have the sameversion (config.xml) ...
But I cannot image that 2 apps with different id's need to have seperate version numbers ?
Can someone help me with this issue please ?
- 38 Posts
- 1 Reply Like
Posted 6 years ago
John Weidner, Champion
- 435 Posts
- 80 Reply Likes
Does the second app install fine if you uninstall the first one?
Could you post your config.xml files? (paste them withing <code> tags)
Could you post your config.xml files? (paste them withing <code> tags)
- 1840 Posts
- 78 Reply Likes
Hi Joost,
There shouldn't be an issue with installing the app on the same device if the app package names are different. Perhaps it could be due to lack of device storage space?
If you can include the PhoneGap Build app ID numbers here so we can check the configuration settings used, that would be useful.
-yiming
There shouldn't be an issue with installing the app on the same device if the app package names are different. Perhaps it could be due to lack of device storage space?
If you can include the PhoneGap Build app ID numbers here so we can check the configuration settings used, that would be useful.
-yiming
- 38 Posts
- 1 Reply Like
Hi,
I've tested on multiple devices (phones) and could reproduce the problem on the different devices.
If I uninstall the first App, I can install the second App. I just can't install 2 apps at the same time.
Here is the simplified config.xml of both Apps:
App 1:
App 2:
I've tested on multiple devices (phones) and could reproduce the problem on the different devices.
If I uninstall the first App, I can install the second App. I just can't install 2 apps at the same time.
Here is the simplified config.xml of both Apps:
App 1:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "be.axi.KASSABON"
version = "1.0.0">
<name>Kassabon</name>
<description>Kassabon</description>
<author href="http://www.axi.be" email="info@axi.be">AXI NV</author>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/notification"/>
...
<gap:platform name="android" />
<gap:platform name="ios" />
</widget>
App 2:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "be.axi.SLAAPP"
version = "1.0.0">
<name>ITSM</name>
<description>IT Service Management</description>
<author href="http://www.axi.be" email="info@axi.be">AXI NV</author>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/notification"/>
...
<gap:platform name="android" />
<gap:platform name="ios" />
</widget>
- 38 Posts
- 1 Reply Like
I really think the problem is causes by the same version number "1.0.0".
But why can't an App with a different id, have the same version number ?
Do I need to add another element in the confix.xml to make a unique version ?
But why can't an App with a different id, have the same version number ?
Do I need to add another element in the confix.xml to make a unique version ?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I doubt it has anything to do with the version number.
Could you please check this:
1. In PGB, from your app's page, hit the settings tab. Do that for both apps and check the value of the field 'package'. If these are different and correct:
2. Take your .apk files, make a copy of both, rename the copies to a .zip extension, open them and extract from each the Manifest file. Open each Manifest in an editor (might look a bit scrambled) and see if you can find the package names.
Could you please check this:
1. In PGB, from your app's page, hit the settings tab. Do that for both apps and check the value of the field 'package'. If these are different and correct:
2. Take your .apk files, make a copy of both, rename the copies to a .zip extension, open them and extract from each the Manifest file. Open each Manifest in an editor (might look a bit scrambled) and see if you can find the package names.
- 9 Posts
- 0 Reply Likes
I checked this out using a binary file editor to view the info.plist file. The app id's do not match what the config.xml file or the settings in the phonegap build app page. The problem is that one app has the incorrect id.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Then probably PGB couldn't find the config.xml, or couldn't parse it properly
This can be caused by a typo ("config.xml" file name misspelled, or widget tag wrong in config.xml) or by a misplacement (config.xml not in root of zip file or github collection).
Caution: now that you mention your plist, it appears that we might have a different problem here. The OP (Joost) was talking about Android apps - which is why I mentioned the Manifest.
You are obviously talking about iOS. Your problem could also be caused by your certificates. Are you, by any chance, using the same p12 and mobileprovision for both apps in development environment?
This can be caused by a typo ("config.xml" file name misspelled, or widget tag wrong in config.xml) or by a misplacement (config.xml not in root of zip file or github collection).
Caution: now that you mention your plist, it appears that we might have a different problem here. The OP (Joost) was talking about Android apps - which is why I mentioned the Manifest.
You are obviously talking about iOS. Your problem could also be caused by your certificates. Are you, by any chance, using the same p12 and mobileprovision for both apps in development environment?
- 9 Posts
- 0 Reply Likes
Using the same p12 with different development provision profiles.
- 9 Posts
- 0 Reply Likes
Problem was with certs.. Had to repair the p12 with the right mobile provisioning profile. Thanks for your help. Good advice!!
- 9 Posts
- 2 Reply Likes
I'm building for iOS and found that having two builds with different IDs doesn't make a difference---if you are using the same provisioning profile. You must create separate provisioning profiles or iOS will keep installing one version over another even if they have different app IDs.
- 9 Posts
- 0 Reply Likes
The app names show up correctly in itunes / iphone utility but the ids for the newer app are wrong. Typical format for an app id from the config.xml is com.yourdomain.yourappname. The id from the config.xml is is getting incorrectly applied from an older app in my phonegap build list to my new app.
The problem is that one app has the incorrect id. I've deleted and rebuilt this incorrectly identified app twice with no success.
App ID: 1092986
ID it is getting comes from app id: 905704
The problem is that one app has the incorrect id. I've deleted and rebuilt this incorrectly identified app twice with no success.
App ID: 1092986
ID it is getting comes from app id: 905704
- 1840 Posts
- 78 Reply Likes
Hi Joel,
Your mobileprovision file specifies a different package ID than the one provided in config.xml, so the ID was changed by the build scripts to use the one in your certs.
Try rebuilding app 1092986 using a wildcard app ID provisioning file, or use one with the same package ID as specified in config.xml.
-yiming
Your mobileprovision file specifies a different package ID than the one provided in config.xml, so the ID was changed by the build scripts to use the one in your certs.
Try rebuilding app 1092986 using a wildcard app ID provisioning file, or use one with the same package ID as specified in config.xml.
-yiming
- 1840 Posts
- 78 Reply Likes
Hi Joost,
Can you send us the build app ID numbers for your affected apps? We'll check the build logs on our side to find the cause of your issues.
-yiming
Can you send us the build app ID numbers for your affected apps? We'll check the build logs on our side to find the cause of your issues.
-yiming
- 38 Posts
- 1 Reply Like
Hi,
the App ID of the first App = 1071266
the App ID of the second App = 1092917
Kind Regards
Joost
the App ID of the first App = 1071266
the App ID of the second App = 1092917
Kind Regards
Joost
- 1840 Posts
- 78 Reply Likes
Hi Joost,
The com.jcjee.plugins.emailcomposer appears to be the cause of the issue. That plugin uses a provider ID, which must be unique and cannot have multiple apps present on the device that has the same provider ID.
-yiming
The com.jcjee.plugins.emailcomposer appears to be the cause of the issue. That plugin uses a provider ID, which must be unique and cannot have multiple apps present on the device that has the same provider ID.
-yiming
- 38 Posts
- 1 Reply Like
Hi,
thanks for your feedback.
What do you mean with "Provider ID" ?
Is this an id which is configured by the creator of that plugin ?
So if I understand correctly, there is no solution if I use this plugin ?
Do you know of any other mail plugin which does cause this problem ?
Kind regards
Joost
thanks for your feedback.
What do you mean with "Provider ID" ?
Is this an id which is configured by the creator of that plugin ?
So if I understand correctly, there is no solution if I use this plugin ?
Do you know of any other mail plugin which does cause this problem ?
Kind regards
Joost
- 1840 Posts
- 78 Reply Likes
- 74 Posts
- 3 Reply Likes
Hello Joost
I am having this issue with my Android apps (no issues with IOS), just as described in your post. If I install one, the other fails to install (application not installed):
http://community.phonegap.com/nitobi/...
I am using the same email composer mentioned in this thread
gap:plugin name="com.jcjee.plugins.emailcomposer" version="1.4.6"
Can you share whether you were able to fix the issue? What email composer did you finally use?
All our apps will have this email option and I would like to find a unique solution that works well in all.
Thanks in advance for your help.
I am having this issue with my Android apps (no issues with IOS), just as described in your post. If I install one, the other fails to install (application not installed):
http://community.phonegap.com/nitobi/...
I am using the same email composer mentioned in this thread
gap:plugin name="com.jcjee.plugins.emailcomposer" version="1.4.6"
Can you share whether you were able to fix the issue? What email composer did you finally use?
All our apps will have this email option and I would like to find a unique solution that works well in all.
Thanks in advance for your help.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers






