Cordova push


#1

I am using https://github.com/hollyschinsky/PushNotificationSample for
Android, but its not working for me

I have changed senderID to my ID

Below code is not getting executed, I am not even getting the alert
message which I have added

$cordovaPush.register(config).then(function (result) {

        console.log("Register success " + result);

        alert('hey wassup' + result);

        $cordovaToast.showShortCenter('Registered for push 

notifications’);

        $scope.registerDisabled=true;

        // ** NOTE: Android regid result comes back in the 

pushNotificationReceived, only iOS returned here

        if (ionic.Platform.isIOS()) {

            $scope.regId = result;

            storeDeviceToken("ios");

        }

Kindly suggest what can be done to solve this issue


#2

did you see Push notification using PushPlugin returns OK and not reg id ?