Phonegap build with push notifications

0
Hi! I’ve wanted to customize my build package with the needed config files to use the push notifications module:https://docs.mendix.com/howto/mobile/implementation-guide Whenever I select the push notifications options on the deploy/mobileapp page I can’t npm run package it. I get this error. If I build it without the pushnotification box selected it works. Anyone knows how to fix this? Thank you
asked
1 answers
1

Hi Vincent, I got the same error when I upgraded my project. You can solve this by adding the missing js file yourself.

From your phonegap folder go to node_modules/@mendix/mendix-hybrid-app-base Then create new scripts folder.

Then create new before_build.js file with the following content:

#!/usr/bin/env node

require('fs').copyFileSync("./config/build-extras.gradle", "./platforms/android/app/build-extras.gradle");

 

answered