Push notification not correctly installing and working

Hello, it’s been hour trying to do this.

So i whent to ngCordoba push notification and tried to install the plugin by

cordova plugin add https://github.com/phonegap-build/PushPlugin.git

and get this

$ cordova plugin add https://github.com/phonegap-build/PushPlugin.git
Fetching plugin “https://github.com/phonegap-build/PushPlugin.git” via git clone
Repository “https://github.com/phonegap-build/PushPlugin.git” checked out to git ref “master”.
shell.js: internal error
Error: EXDEV, cross-device link not permitted '/var/folders/1x/ccb66hbj7rddgcyh1g9x97v00000gn/T/git/1447917500613/Example’
at Error (native)
at Object.fs.renameSync (fs.js:636:18)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:77:8
at Array.forEach (native)
at Object._mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:53:11)
at Object.mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:53:19
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)

So I when inside the git and it’s deprecated. Follow the new link and downloaded and install it localy

$ ionic plugin add /Users/braianmellor/Downloads/phonegap-plugin-push-master

after that and running the app with index.html scripts
<script src="lib/ionic/js/ionic.bundle.js"></script> <script src="lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js"></script> <script src="lib/ngCordova/dist/ng-cordova.js"></script> <script src="cordova.js"></script> <script type="text/javascript" src="js/pushNotification.js"></script>

After running the app, console return:

[Log] deviceready has not fired after 5 seconds. (cordova.js, line 1174)
[Log] Channel not fired: onPluginsReady (cordova.js, line 1167)
[Log] Channel not fired: onCordovaReady (cordova.js, line 1167)

So decided to go with the magical remove/add platform and get this:

Updated the hooks directory to have execute permissions
Removing platform from package.json file
$ ionic platform add ios
Updated the hooks directory to have execute permissions
Adding ios project...
iOS project created with cordova-ios@3.8.0
Running command: "/xxx/hooks/after_prepare/010_add_platform_class.js" "/xxx"
add to body class: platform-ios
Error: ENOENT, no such file or directory '/xxx/plugins/com.phonegap.plugins.PushPlugin/plugin.xml'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:118:27)
    at new PluginInfo (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/PluginInfo.js:320:37)
    at PluginInfoProvider.get (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/PluginInfoProvider.js:35:32)
    at runInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:261:43)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:84:16
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)```