2

When I build meteor app with a mobile-config.js that has an App ID specified, it does not build the app using that ID. As a result, App gets generated using unique ID, which does not match with the server's App ID, and thus HCP does not work.

Build command is:

meteor build --directory /tmp --server https://somewhere.com 

The mobile-config.js file is like this:

App.info({
  **id: 'com.quranerkotha.app',**
  name: 'কুরআনের কথা ',
...
...
  version: '1.4.8'
});

I have logged the app ID at startup time in code:

console.log("Application startup: " + __meteor_runtime_config__.appId);

I can see it is generating unique ID. For ex, I see lk3awl936t0m.yz0kj2x9lpza as the appID, not the appID specified in mobile-config.js.

Because of this, HCP fails with this exception:

com.meteor.webapp.WebAppException: appId in downloaded asset bundle does not match current appId. Make sure the server at https://somewhere.com/ is serving the right app.

Seeking help to fix the app id for the app.

2
  • why the ** at the start and end of "id: 'com.quranerkotha.app',"? Sep 5, 2019 at 21:35
  • I was trying to make it appear bold. Please ignore that. in the json file, it is not there. Thanks for looking at this.
    – oazabir
    Sep 29, 2019 at 16:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.