Thorough search of this site did find my question (from different user) but there are no answers so I would like to ask myself:
Background: Using Apache Cordova 4.x and Visual Studio 2013 (all latest updates). Made some apps - work fine on Android and other platforms - deployed successfully to Windows Phone 8.1. Uploaded bundle to phone store and there is a problem with the packaged application id not matching what the store expects.
Details: the problem is that the store named my app (reserved previously) as "12345myname.appname" but in Config.xml the app id is "com.myname.appname". Renaming the widget id or appid or package id to 12345myname.appname" fails because of this: Error 48 File content does not conform to specified schema. The 'Id' attribute is invalid ... 'http://schemas.microsoft.com/appx/2010/manifest:ST_ApplicationId' ...
I know what this error is but I've exhausted all possible means to get around it (create.js from cordova has the right regex - no need to change it, dropping appx manifests in res/native/windows, directly editing the appx manifests, using additional config files, etc...) nothing works. I must be missing something absolutely obvious.
The vs:platformspecific settings does contain the correct store publisher id and appid but this is somehow not been used to build the package, I assume as a post-build examination of the manifests show the incorrect store id on the package even if I override it on a custom manifest (custom manifest gets ignored upon repackaging the bundle)
Can anyone provide some insights? It is starting to sound like there is something wrong with either Cordova or VS building the bundle but I presume the problem is me and something I am not doing.