katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

getAllScheduled returns empty object every time #1065

Closed theblindprophet closed 7 years ago

theblindprophet commented 8 years ago

I have successfully created the notifications in my Ionic2 app. When I enter the page and call the statement:

this.allReminders = LocalNotifications.getAllScheduled();

which always returns the object:

{"_zone_symbol_state":null, "_zone_symbol_value":[]}

No matter how many notifications are currently scheduled, that object is always returned.

import { Component } from "@angular/core";
import { NavController, Alert } from 'ionic-angular';
import { LocalNotifications } from 'ionic-native';

@Component({
    templateUrl: 'build/pages/reminders/reminders.html'
})
export class RemindersPage {

    getReminders() {
        this.allReminders = LocalNotifications.getAllScheduled();
    }
    ngOnInit() {
        this.getReminders();
    }

}
rwillett commented 7 years ago

If this is still a problem, please update with the template in #1188.

rwillett commented 7 years ago

Closed as no response from original poster.