Monaca Localkit build fails with https://github.com/phonegap/phonegap-plugin-push.git



  • I used to use a Cordova Push Notification plugin at
    https://github.com/phonegap-build/PushPlugin.git
    and it works with Monaca Localkit build.

    The readme.md page said it’s got obsoleted, instead use the new repo at
    https://github.com/phonegap/phonegap-plugin-push.git

    but i’ve got an error when building using Localkit
    according to project_info.json, the cordova version that i use is
    “cordova_version”: “5.2”,
    Does that have something to do with the error that im facing?

    I’d really appreciate it if someone help me out as im really stuck with it for so long…

    Thanks.



  • I seem to sort it out. according to this page
    https://github.com/phonegap/phonegap-plugin-push/issues/679

    this has to be provided to the cordova plugin add command
    –variable SENDER_ID=value

    Thanks.


  • Monaca

    @tfutada you can add the SENDER_ID from the plugin’s configuration in Monaca’s custom plugins management section.



  • I have the same problem, I have already entered the SENDER_ID, and still does not work

    I am using Monaca to build my application phonegap, everything works fine, now I’m trying to import the plugin phonegap/phonegap-plugin-push. This plugin is an external plugin, then I have upgraded my account to developer plan, in the configuration of the plugin I have set the SENDER_ID like this SENDER_ID=XXXXXXXXXXXX.

    the problem comes when I want to compile my app or a new custom debugger:

    -Check AndroidManifest.xml is correct.
    -Check KeyStore setting

    the complete trace is as follows

    Temporary folder: /private/tmp/monaca/571550297e2193515015be16
    Downloading project
    Download complete
    Running for 4.1
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "mobi.monaca.plugins.Monaca" for android
    cordova version not detected (lacks script "/private/tmp/monaca/571550297e2193515015be16/android/skeleton/platforms/android/cordova/version" ), continuing.
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "org.apache.cordova.splashscreen" for android
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "org.apache.cordova.camera" for android
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "org.apache.cordova.file" for android
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "org.apache.cordova.file-transfer" for android
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "org.apache.cordova.geolocation" for android
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf disabled
    No ALTQ support in kernel
    ALTQ related functions disabled
    pf enabled
    Installing "phonegap-plugin-push" for android
    cordova version not detected (lacks script "/private/tmp/monaca/571550297e2193515015be16/android/skeleton/platforms/android/cordova/version" ), continuing.
    cordova-android version not detected (lacks script "/private/tmp/monaca/571550297e2193515015be16/android/skeleton/platforms/android/cordova/version" ), continuing.
    Error during processing of action! Attempting to revert…
    Failed to install 'phonegap-plugin-push':Error: Uh oh!
    cannot find "/Applications/adt-bundle-mac/sdk/com.android.support:support-v13:23+/project.properties" referenced in <framework>
    at Object.AndroidProject.addSubProject (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/android-project.js:70:51)
    at module.exports.framework.install (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:110:27)
    at Object.ActionStack.process (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:72:25)
    at handleInstall (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:591:20)
    at /data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:340:28
    at _fulfilled (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:749:13)
    at /data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:509:49
    at flush (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:108:17)
    Error: Uh oh!
    cannot find "/Applications/adt-bundle-mac/sdk/com.android.support:support-v13:23+/project.properties" referenced in <framework>
    at Object.AndroidProject.addSubProject (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/android-project.js:70:51)
    at module.exports.framework.install (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:110:27)
    at Object.ActionStack.process (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:72:25)
    at handleInstall (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:591:20)
    at /data/monaca_build_module/4.1/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:340:28
    at _fulfilled (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:749:13)
    at /data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:509:49
    at flush (/data/monaca_build_module/4.1/node_modules/cordova/node_modules/q/q.js:108:17)
    Build error: Error building project source code


Log in to reply