Comments (2)
After some investigations, I noticed that cordova prepare
includes for some reason not all plugins to the frontend libraries:
platforms\ios\www\cordova_plugins.js
and platforms\ios\www\plugins\*
. That is why the codepush bundle miss those plugins and the app is broken. Do somebody knows why cordova adds not all resources to the www/ folder?
In a meanwhile I have fixed this issue, by using after_prepare
hook and manually coping the frontend resources from android platform.
config.xml
<platform name="ios">
<hook type="after_prepare" src="hooks/ios-prepare.js" />
ios-prepare.js
const io = require('atma-io');
io.File.copyTo(
'/platforms/android/platform_www/cordova_plugins.js',
'/platforms/ios/www/cordova_plugins.js',
);
io.Directory.copyTo(
'/platforms/android/platform_www/plugins',
'/platforms/ios/www/plugins/',
{ verbose: true }
);
Using the moment, I would like to express gratitude to the team - great library and the platform.
from cordova-plugin-code-push.
Another update
It was a bad idea to copy android
frontend plugins to to ios
www, as the scripts are different. Our final solution was to extract *.ipa package to the target windows machine, and in after_prepare
hook to copy the proper cordova_plugins.js
file and plugins/
folder from iOS bundle.
from cordova-plugin-code-push.
Related Issues (20)
- Can this plugin pass the Google market audit
- Cannot install code push cordova plugin
- Slow down support
- Application is stuck while getting update from appcenter codepush
- `CODE_PUSH_APK_BUILD_TIME` slows down builds recompiling resources unecessarily.
- [Feature] Support Capacitor for AppCenter CodePush (Solved)
- Google Play Console reports security error: Zip Path Traversal Error due to cordova-plugin-zip dependency HOT 1
- Error: An error has occurred while performing the operation
- This plugin is compatible with capacitor and UIWebView reference free ? HOT 1
- [CodePush] Could not access local package. Stage:undefinedError code: undefined HOT 2
- [ERROR] could not get binary hash.Error: Could not get binary hash. HOT 1
- cordova-plugin-code-push dependency overrides AFNetworking files
- [CodePush] Update is rolling back after app relaunch HOT 1
- How to change url when startloading files?
- Make an official version for CapacitorJS HOT 2
- Support for cordova-android>=10.0.0 WebViewAssetLoader default HOT 1
- net::ERR_ACCESS_DENIED on codepush install after changing Android API target to 30 HOT 1
- Could not get binary hash.Error: Could not get binary hash.
- A Code Push Alternative - Ionic Appflow HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-code-push.