|
@@ -1,5 +1,6 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
import { NavController } from 'ionic-angular';
|
|
|
+import { LocalNotifications } from 'ionic-native';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'page-settings',
|
|
@@ -42,6 +43,15 @@ export class SettingsPage {
|
|
|
*/
|
|
|
changeSync(e: any) {
|
|
|
localStorage.setItem("sync", e);
|
|
|
+
|
|
|
+ console.log(e);
|
|
|
+
|
|
|
+
|
|
|
+ LocalNotifications.schedule({
|
|
|
+ id: 1,
|
|
|
+ text: "Test notification",
|
|
|
+ every: "minute"
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/**
|