-
Notifications
You must be signed in to change notification settings - Fork 466
Not functioning correctly when build using Phonegap build #118
Comments
After some findings, I found out that Phonegap doesn't support cordova hooks and the plugin has some hooks that are executed when build using cordova. So, is there any way that I could make phonegap to do the tasks from the hooks, or if you could tell me what the hook does so that i could try some options. |
Yes, PGB build doesn't support hooks. You are not the first one, who stumble upon that. I really need to add that in the readme file... Since you are building for Android - hooks are not needed. They are used only for <chcp>
<config-file url="http://mydomain.com/some/path/chcp.json" />
</chcp> |
Hi nikDemyankov, The config.xml file for my app is
You can try the config-file url, it is correct and the content of the file is
So, can you please help me in identify the issue here, as I am stuck here. |
I can reproduce original question <chcp>
<config-file url="s3.amazonaws.com/mystore.in/s/53ca09a468dbb34762b98894/ms.mobile_app_themes/56e17107e0339962486bd739/chcp.json" />
</chcp> As a result - I get that exception, since URL has no protocol => malformed. In the log you provided there is no info on the protocol he is complaining about. For example:
Probably you removed it from the log. Nonetheless, check, what is displayed in there. Also, I've tried to setup a test application with the The only problem I got with it, is that md5 hash of the
|
Hi @nikDemyankov,
its like phonegap did't read my chcp tag or the url which I provided in it. Did you try to build the app using Phonegap because it works with local cordova build, and the update is checked correctly by chcp plugin. |
Hi :)
No, I don't have a PGB access, so I did a local testing... Just wanted to reproduce somehow this issue, and managed by defining wrong url format.
The second error comes as a result of the first one.
This preference is read by the plugin, not by PGB. If it's empty - you get one error:
There is no Malformed exception. So my guess that it's not empty, but either modified by PGB, or you are uploading the wrong version on their server... But I might be wrong here. Can you somehow look into Android native project before it is compiled into Or you can take |
Hi @nikDemyankov , I checked the config.xml file before compilation version of both the cordova build and phonegap build. |
So, it was in
|
I contacted PGB about this, and here's what they said:
|
Are there any plans to fix this by using parameters? |
@szh There is a plan to remove xml preferences and move them to chcp.json file: #161 (comment) |
Hi there! second, wanted to ask the status quo of the newly thought configuration style? or is: cheers! |
Hi @JhonnyJason , at the moment you can either "hardcode url", or use JS API to configure the url. I think API approach is better. |
Ah for some unknown reason I completely neglected the JS API approach. |
👋 Hi! Thank you for your interest in this repo. 😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork. 🔒 This will now be closed & locked. ℹ️ Please see #371 for more information. |
When I build the app using cordova on my system, the app works as intended. But when I build the same app using Phonegap build, then it doesn't check for any update.
After debugging the app, I found this error in the logs
But on cordova build the same is working and the update is checked.
Since we have to automate our process for the mobile apps, we are using Phonegap build service. So, could you please guide me, what could be the issue, if I am doing something wrong.
It would be a great help.
The text was updated successfully, but these errors were encountered: