{"action":"opened","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1609","repository_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1609/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1609/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1609/events","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/1609","id":324606132,"number":1609,"title":"Local Notification trigger not working in 0.9.0_beta.3","user":{"login":"Ankitkumar7","id":11002067,"avatar_url":"https://avatars3.githubusercontent.com/u/11002067?v=4","gravatar_id":"","url":"https://api.github.com/users/Ankitkumar7","html_url":"https://github.com/Ankitkumar7","followers_url":"https://api.github.com/users/Ankitkumar7/followers","following_url":"https://api.github.com/users/Ankitkumar7/following{/other_user}","gists_url":"https://api.github.com/users/Ankitkumar7/gists{/gist_id}","starred_url":"https://api.github.com/users/Ankitkumar7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ankitkumar7/subscriptions","organizations_url":"https://api.github.com/users/Ankitkumar7/orgs","repos_url":"https://api.github.com/users/Ankitkumar7/repos","events_url":"https://api.github.com/users/Ankitkumar7/events{/privacy}","received_events_url":"https://api.github.com/users/Ankitkumar7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T06:31:02Z","updated_at":"2018-05-19T06:31:02Z","closed_at":null,"author_association":"NONE","body":"**WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!**\r\n\r\nProvide a general summary of the issue.\r\nInitializing an array called notification with parameter below:\r\nlet hr = 10;\r\nlet mn = 30;\r\n  let notification = {\r\n            id: alarmId,\r\n            title: AlarmTitle,\r\n            text: AlarmText,\r\n            trigger: { every: { hour: hr, minute:  mn} }\r\n           };\r\n this.localNotifications.schedule(notification);\r\n\r\nError is coming :\r\n[ts]\r\nArgument of type '{ id: any; title: any; text: any; trigger: { every: { hour: string; minute: any; }; }; }' is not assignable to parameter of type 'ILocalNotification | ILocalNotification[]'.\r\n  Type '{ id: any; title: any; text: any; trigger: { every: { hour: string; minute: any; }; }; }' is not assignable to type 'ILocalNotification[]'.\r\n    Property 'length' is missing in type '{ id: any; title: any; text: any; trigger: { every: { hour: string; minute: any; }; }; }'.\r\n## Your Environment\r\n\r\n* Plugin version:  0.9.0_beta.3\r\n* Platform: android\r\n* OS version: oreo (8.0.0)\r\n* Device manufacturer / model: Mi A1\r\n* Cordova version (```cordova -v```):  7.1.0\r\n* Cordova platform version (```cordova platform ls```):\r\n-> Installed platforms:\r\n->   android 6.3.0\r\n* Available platforms:\r\n-> blackberry10 ~3.8.0 (deprecated)\r\n-> browser ~5.0.0\r\n-> ios ~4.5.1\r\n-> osx ~4.0.1\r\n-> ubuntu ~4.3.4 (deprecated)\r\n-> webos ~3.7.0\r\n-> windows ~5.0.0\r\n-> www ^3.12.0\r\n* Plugin config:\r\n> cordova plugin ls\r\n-> com-badrit-base64 0.2.0 \"Base64\"\r\n-> cordova-android-support-gradle-release 1.3.0 \"cordova-android-support-gradle-release\"\r\n-> cordova-base64-to-gallery 4.1.3 \"base64ToGallery\"\r\n-> cordova-plugin-android-permissions 1.0.0 \"Permissions\"\r\n-> cordova-plugin-badge 0.8.7 \"Badge\"\r\n-> cordova-plugin-calendar 5.0.0 \"Calendar\"\r\n-> cordova-plugin-camera 4.0.4-dev \"Camera\"\r\n-> cordova-plugin-device 1.1.4 \"Device\"\r\n-> cordova-plugin-facebook4 1.9.1 \"Facebook Connect\"\r\n-> cordova-plugin-file 5.0.0 \"File\"\r\n-> cordova-plugin-file-transfer 1.7.0 \"File Transfer\"\r\n-> cordova-plugin-firebase 1.0.0 \"Google Firebase Plugin\"\r\n-> cordova-plugin-geolocation 4.0.1 \"Geolocation\"\r\n-> cordova-plugin-googleplus 5.1.1 \"Google SignIn\"\r\n-> cordova-plugin-ionic-webview 1.1.16 \"cordova-plugin-ionic-webview\"\r\n-> cordova-plugin-local-notification 0.9.0-beta.3 \"LocalNotification\"\r\n-> cordova-plugin-sim 1.3.3 \"SIM\"\r\n-> cordova-plugin-speechrecognition 1.1.2 \"Speech Recognition\"\r\n-> cordova-plugin-splashscreen 4.0.3 \"Splashscreen\"\r\n-> cordova-plugin-whitelist 1.3.1 \"Whitelist\"\r\n-> cordova-plugin-x-socialsharing 5.2.1 \"SocialSharing\"\r\n-> cordova-plugin-youtube-video-player 1.0.6 \"CordovaYoutubeVideoPlayer\"\r\n-> cordova-sms-plugin 0.1.11 \"Cordova SMS Plugin\"\r\n-> cordova-sqlite-storage 2.1.2 \"Cordova sqlite storage plugin\"\r\n-> cordova-wheel-selector-plugin 1.0.0 \"Cordova Wheel Selector Plugin\"\r\n-> es6-promise-plugin 4.1.0 \"Promise\"\r\n-> ionic-plugin-keyboard 2.2.1 \"Keyboard\"\r\n-> phonegap-plugin-barcodescanner 7.0.2 \"BarcodeScanner\"\r\n* Ionic Version (if using Ionic)\r\n->  @ionic/cli-utils  : 1.19.0\r\n->  ionic (Ionic CLI) : 3.19.0\r\n## Expected Behavior\r\n trigger parameter for scheduling notification is not working at all.\r\n_Tell us what should happen_\r\n* Previously i was using local notification 0.8.5 after upgrading my android sdk 0,8.5 is not working, so i have upgraded local notification from 0.8.5 to 0.9.0_beta.3  and now trigger is not working, actions is working fine.\r\n\r\n\r\n_What were you trying to do?_\r\n![alarm](https://user-images.githubusercontent.com/11002067/40265761-48998c68-5b5c-11e8-8681-8dc97994f701.png)\r\n\r\nI wanted to set the notification at specific time but after setting up time from time picker , notification comes instantly when i use action parameter but for trigger i am getting error\r\n\r\n"}}
{"actor":{"display_login":"Ankitkumar7"}}