Open byronigoe opened 3 years ago
Hi jcgz100, That's great news! What do you mean by "I make it work (at least the server side)"? Will you fork the microsoft repo to work without Azure?
Hi Pigsnuck, i mean that i deployed the code-push-server as Azure App Service, i just follow the instructions here: https://github.com/microsoft/code-push-server/blob/main/api/README.md
I am still stuck with the code-push-plugin, because there is an error when the file is unzipped, because the file is not found, even the file is there.. http://localhost/__cdvfile_files__/codepush/download/update.zip doesnt work cdvfile://localhost/cdvfile_files/codepush/download/update.zip works It only works when i replace http to cdvfile.. but i am still testing..
I solved this issue removing cordova-plugin-file (8.0.0) and installing 4.3.3
sudo npm uninstall cordova-plugin-file sudo cordova plugin remove cordova-plugin-file --force sudo cordova plugin add install git+https://github.com/jcgz100/cordova-plugin-file.git#4.3.3
And add to config.xml this preferences:
<preference name="AndroidPersistentFileLocation" value="Internal" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
Thanks @byronigoe for post your configuration
Cordova Android 12.0.1 Codova Plugin File 1.13.1
I hope this help some one
Hi jcgz100, That's great news! What do you mean by "I make it work (at least the server side)"? Will you fork the microsoft repo to work without Azure?
Hi Pigsnuck, i mean that i deployed the code-push-server as Azure App Service, i just follow the instructions here: https://github.com/microsoft/code-push-server/blob/main/api/README.md I am still stuck with the code-push-plugin, because there is an error when the file is unzipped, because the file is not found, even the file is there.. http://localhost/__cdvfile_files__/codepush/download/update.zip doesnt work cdvfile://localhost/cdvfile_files/codepush/download/update.zip works It only works when i replace http to cdvfile.. but i am still testing..
I solved this issue removing cordova-plugin-file (8.0.0) and installing 4.3.3
sudo npm uninstall cordova-plugin-file sudo cordova plugin remove cordova-plugin-file --force sudo cordova plugin add install git+https://github.com/jcgz100/cordova-plugin-file.git#4.3.3
And add to config.xml this preferences:
<preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="AndroidInsecureFileModeEnabled" value="true" />
Thanks @byronigoe for post your configuration
Cordova Android 12.0.1 Codova Plugin File 1.13.1
I hope this help some one
Thanks for taking the time to post that! It will help me for sure!
Great news! I've got an alternative working!
Cordova Plugin
The official cordova-plugin-code-push supports pointing to a different server:
<preference name="CodePushServerUrl" value="http://your-server.com/" />
Just in case I will need to fix bugs, I will maintain my own fork: https://github.com/byronigoe/cordova-plugin-code-pushCodePush Server
@shm-open created https://github.com/shm-open/code-push-server With the help of Google Translate and the documentation for Pug and Redis, I was able to get it working. I will continue to maintain this English version, and submit PRs to upstream when possible: https://github.com/byronigoe/code-push-server
CodePush CLI
I have not needed to modify the CLI yet, but in order to guarantee interoperability with future backend changes, I'm using my fork: https://github.com/byronigoe/code-push-cli