Urgent! I NEED HELP :/ LOCAL NOTIFICATION


#1

Hello guys , I’m going crazy with an application, I am not able to make the it send various notifications such as time and date, it only sending the first notification someone could help me with this code , so I can send as many notifications I power with the day and time for the alert .

my code

.controller(‘NotificationController’, function($scope, $cordovaLocalNotification, $ionicPlatform) {
$scope.$on("$cordovaLocalNotification:added", function(id, state, json) {
alert(“Added a notification”);
});

$ionicPlatform.ready(function () {


     $scope.scheduleDelayedNotification = function () {
      var now = new Date().getTime();

      $cordovaLocalNotification.getScheduledIds(
      {
        id: 1,
        title: '#FIZMAISUMA',
        text: 'Uoorr',
        sound:'file://sound/notification-tattoo.mp3',
        icon: '../../platforms/android/res/drawable-hdpi/ic_stat_icon_app3.png',
       at         : new Date(new Date().getTime() + 10*1000)
      },

      {
        id:2,
        title:'Oiii',
        text:'Uoorr',
        sound:'file://sound/notification-tattoo.mp3',
        icon: '../../platforms/android/res/drawable-hdpi/ic_stat_icon_app3.png',
        at         : new Date(new Date().getTime() + 15*1000)
      }

      ).then(function (result) {
        console.log('Notificações ativadas!');
      });
    };


    $scope.cancelSingleNotification = function () {
      $cordovaLocalNotification.cancelAll().then(function (result) {
        console.log('Notification 3 Canceled');
      });
    };

});

});