Sources:
https://github.com/manifoldjs/ManifoldJS
https://github.com/manifoldjs/ManifoldJS/wiki/Using-Cordova-Plugins-in-Hosted-Web-Apps
https://documentation.onesignal.com/docs/cordova-sdk-setup
1. Create by manifoldjs manifoldjs -m manifest.json -l Debug -p ios,android .
2. cordova plugin add cordova-plugin-hostedwebapp
3. cordova plugin add onesignal-cordova-plugin
4. Result compile in Android Studio and XCode
Good luck
P.S.
May be a problem:
Error: Cannot find module ‘../../node_modules/elementtree’
Solution:
i found the problem, here is the solution
/project/cordova/plugins/cordova-plugin-hostedwebapp/scripts/updateConfigurationBeforePrepare.js
line 123: change to context.requireCordovaModule(‘elementtree’);
/project/cordova/plugins/cordova-plugin-hostedwebapp/scripts/updateConfigurationAfterPrepare.js
line 32: change to context.requireCordovaModule(‘elementtree’);