{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1022","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/1022/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1022/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1022/events","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/1022","id":162106759,"number":1022,"title":"In iOS Notification is not coming?","user":{"login":"gandhiselvarj","id":19926754,"avatar_url":"https://avatars.githubusercontent.com/u/19926754?v=3","gravatar_id":"","url":"https://api.github.com/users/gandhiselvarj","html_url":"https://github.com/gandhiselvarj","followers_url":"https://api.github.com/users/gandhiselvarj/followers","following_url":"https://api.github.com/users/gandhiselvarj/following{/other_user}","gists_url":"https://api.github.com/users/gandhiselvarj/gists{/gist_id}","starred_url":"https://api.github.com/users/gandhiselvarj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandhiselvarj/subscriptions","organizations_url":"https://api.github.com/users/gandhiselvarj/orgs","repos_url":"https://api.github.com/users/gandhiselvarj/repos","events_url":"https://api.github.com/users/gandhiselvarj/events{/privacy}","received_events_url":"https://api.github.com/users/gandhiselvarj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-24T09:12:31Z","updated_at":"2016-06-27T06:30:39Z","closed_at":null,"body":"In Android its working fine but in iOS its not working ? \r\nMy Code is below\r\n\r\n```\r\n<script type=\"text/javascript\" src=\"local-notification.js\"></script>\r\n        <script type=\"text/javascript\">\r\n            app.initialize();\r\n        </script>\r\n\t\t<script>\r\n\t\tdocument.addEventListener('deviceready', function () {\r\n\t\tcordova.plugins.notification.local.registerPermission(function (granted) {\r\n    //alert('Permission has been granted: ' + granted);\r\n});\r\n\r\ncordova.plugins.notification.local.schedule({\r\n    text: \"Wake up!\",\r\n    sound: \"file://sounds/alert.caf\",\r\n    every: 30 // every 30 minutes\r\n});\r\n\r\n\t\t\tvar now             = new Date().getTime(),\r\n\t\t\t_5_sec_from_now = new Date(now + 5*1000);\r\n\r\n\t\t\tcordova.plugins.notification.local.schedule({\r\n\t\t\ttext: \"Delayed Notification\",\r\n\t\t\tat: _5_sec_from_now,\r\n\t\t\tled: \"FF0000\",\r\n\t\t\tsound: null\r\n\t\t\t});\r\n\t\t\tvar now                  = new Date().getTime(),\r\n\t\t\t_10_seconds_from_now = new Date(now + 10*1000);\r\n\t\t\t_20_seconds_from_now = new Date(now + 20*1000);\r\n\t\t\twindow.plugin.notification.local.add({\r\n\t\t\tid:      1,\r\n\t\t\ttitle:   'Reminder 1',\r\n\t\t\tmessage: 'Only 10 Mins Left for parking expires',\r\n\t\t\t//repeat:  'weekly',\r\n\t\t\tsound:   \"file://sounds/sound.mp3\",\r\n\t\t\tdate:    _10_seconds_from_now\r\n\t\t\t});\r\n\t\t\twindow.plugin.notification.local.add({\r\n\t\t\tid:      2,\r\n\t\t\ttitle:   'Reminder 2',\r\n\t\t\tmessage: 'Parking time expires',\r\n\t\t\t//repeat:  'weekly',\r\n\t\t\tsound:     @#\"file://sounds/sound.mp3\",\r\n\t\t\tdate:    _20_seconds_from_now\r\n\t\t\t});\r\n\t\t\twindow.location=\"timer.html\";\r\n\t\t}, false);\r\n\t\t\r\n\t\t</script>\r\n\r\n```\r\n\r\nconfig.html\r\n\r\n\r\n`<widget xmlns=\"http://www.w3.org/ns/widgets\" xmlns:gap=\"http://phonegap.com/ns/1.0\" id=\"com.phonegap.helloworld\" version=\"1.0.0\">\r\n  <name>Park N Mark</name>\r\n  <description></description>\r\n  <author href=\"http://phonegap.com\" email=\"support@phonegap.com\">PhoneGap Team</author>\r\n  <content src=\"index.html\"/>\r\n  <preference name=\"permissions\" value=\"none\"/>\r\n   <preference name=\"phonegap-version\" value=\"3.7.0\" />\r\n  <preference name=\"orientation\" value=\"default\"/>\r\n  <preference name=\"target-device\" value=\"universal\"/>\r\n  <preference name=\"fullscreen\" value=\"false\"/>\r\n  <preference name=\"webviewbounce\" value=\"true\"/>\r\n  <preference name=\"prerendered-icon\" value=\"true\"/>\r\n  <preference name=\"stay-in-webview\" value=\"false\"/>\r\n  <preference name=\"ios-statusbarstyle\" value=\"black-opaque\"/>\r\n  <preference name=\"detect-data-types\" value=\"true\"/>\r\n  <preference name=\"exit-on-suspend\" value=\"false\"/>\r\n  <preference name=\"show-splash-screen-spinner\" value=\"true\"/>\r\n  <preference name=\"auto-hide-splash-screen\" value=\"true\"/>\r\n  <preference name=\"disable-cursor\" value=\"false\"/>\r\n  <preference name=\"android-minSdkVersion\" value=\"7\"/>\r\n  <preference name=\"android-installLocation\" value=\"auto\"/>\r\n  <preference name=\"StatusBarOverlaysWebView\" value=\"true\" />\r\n  <preference name=\"StatusBarBackgroundColor\" value=\"#000000\" />\r\n  <gap:plugin name=\"com.phonegap.plugin.statusbar\" />\r\n\t<gap:config-file platform=\"ios\" parent=\"UIStatusBarHidden\">\r\n\t<true/>\r\n\t</gap:config-file>\r\n\t<gap:config-file platform=\"ios\" parent=\"UIViewControllerBasedStatusBarAppearance\">\r\n\t<false/>\r\n\t</gap:config-file>\r\n <feature name=\"StatusBar\">\r\n            <param name=\"ios-package\" value=\"CDVStatusBar\" onload=\"true\" />\r\n        </feature>\r\n  <gap:plugin name=\"org.apache.cordova.battery-status\"/>\r\n  <gap:plugin name=\"org.apache.cordova.camera\"/>\r\n  <gap:plugin name=\"org.apache.cordova.media-capture\"/>\r\n  <gap:plugin name=\"org.apache.cordova.console\"/>\r\n  <gap:plugin name=\"org.apache.cordova.contacts\"/>\r\n  <gap:plugin name=\"org.apache.cordova.device\"/>\r\n  <gap:plugin name=\"org.apache.cordova.device-motion\"/>\r\n  <gap:plugin name=\"org.apache.cordova.device-orientation\"/>\r\n  <gap:plugin name=\"org.apache.cordova.dialogs\"/>\r\n  <gap:plugin name=\"org.apache.cordova.file\"/>\r\n  <gap:plugin name=\"org.apache.cordova.file-transfer\"/>\r\n  <gap:plugin name=\"org.apache.cordova.geolocation\"/>\r\n  <gap:plugin name=\"org.apache.cordova.globalization\"/>\r\n  <gap:plugin name=\"org.apache.cordova.inappbrowser\"/>\r\n  <gap:plugin name=\"org.apache.cordova.media\"/>\r\n  <gap:plugin name=\"org.apache.cordova.network-information\"/>\r\n  <gap:plugin name=\"org.apache.cordova.splashscreen\"/>\r\n  <gap:plugin name=\"org.apache.cordova.vibration\"/>\r\n  <gap:plugin name=\"de.appplant.cordova.plugin.local-notification\" />\r\n  <gap:plugin name=\"com.phonegap.plugins.facebookconnect\" version=\"0.8.0\">\r\n        <param name=\"APP_ID\" value=\"205277553162176\"/>\r\n        <param name=\"APP_NAME\" value=\"Demo_App01\" />\r\n  </gap:plugin>\r\n  <icon src=\"icon.png\"/>\r\n  <icon src=\"www/res/icon/android/icon-36-ldpi.png\" gap:platform=\"android\" gap:qualifier=\"ldpi\"/>\r\n  <icon src=\"www/res/icon/android/icon-48-mdpi.png\" gap:platform=\"android\" gap:qualifier=\"mdpi\"/>\r\n  <icon src=\"www/res/icon/android/icon-72-hdpi.png\" gap:platform=\"android\" gap:qualifier=\"hdpi\"/>\r\n  <icon src=\"www/res/icon/android/icon-96-xhdpi.png\" gap:platform=\"android\" gap:qualifier=\"xhdpi\"/>\r\n  <icon src=\"www/res/icon/blackberry/icon-80.png\" gap:platform=\"blackberry\"/>\r\n  <icon src=\"www/res/icon/blackberry/icon-80.png\" gap:platform=\"blackberry\" gap:state=\"hover\"/>\r\n  <icon src=\"www/res/icon/ios/icon-57.png\" gap:platform=\"ios\" width=\"57\" height=\"57\"/>\r\n  <icon src=\"www/res/icon/ios/icon-72.png\" gap:platform=\"ios\" width=\"72\" height=\"72\"/>\r\n  <icon src=\"www/res/icon/ios/icon-57-2x.png\" gap:platform=\"ios\" width=\"114\" height=\"114\"/>\r\n  <icon src=\"www/res/icon/ios/icon-72-2x.png\" gap:platform=\"ios\" width=\"144\" height=\"144\"/>\r\n  <icon src=\"www/res/icon/webos/icon-64.png\" gap:platform=\"webos\"/>\r\n  <icon src=\"www/res/icon/windows-phone/icon-48.png\" gap:platform=\"winphone\"/>\r\n  <icon src=\"www/res/icon/windows-phone/icon-173-tile.png\" gap:platform=\"winphone\" gap:role=\"background\"/>\r\n  <access origin=\"*\"/>\r\n</widget>`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/comments/228664003","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/1022#issuecomment-228664003","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/1022","id":228664003,"user":{"login":"gandhiselvarj","id":19926754,"avatar_url":"https://avatars.githubusercontent.com/u/19926754?v=3","gravatar_id":"","url":"https://api.github.com/users/gandhiselvarj","html_url":"https://github.com/gandhiselvarj","followers_url":"https://api.github.com/users/gandhiselvarj/followers","following_url":"https://api.github.com/users/gandhiselvarj/following{/other_user}","gists_url":"https://api.github.com/users/gandhiselvarj/gists{/gist_id}","starred_url":"https://api.github.com/users/gandhiselvarj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandhiselvarj/subscriptions","organizations_url":"https://api.github.com/users/gandhiselvarj/orgs","repos_url":"https://api.github.com/users/gandhiselvarj/repos","events_url":"https://api.github.com/users/gandhiselvarj/events{/privacy}","received_events_url":"https://api.github.com/users/gandhiselvarj/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T06:30:38Z","updated_at":"2016-06-27T06:30:38Z","body":"I have changed add to schedule but still its not coming .\r\n\r\n\r\n ```\r\n<script type=\"text/javascript\" src=\"cordova.js\"></script>\r\n        <script type=\"text/javascript\" src=\"local-notification.js\"></script>\r\n\r\n        <script type=\"text/javascript\">\r\n            app.initialize();\r\n        </script>\r\n\t\t<script>\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdocument.addEventListener('deviceready', function () {\r\n\t\tcordova.plugins.notification.local.registerPermission(function (granted) {\r\n\t\t//alert('Permission has been granted: ' + granted);\r\n\t\t});\r\n\r\n\r\n\r\n\t\t\r\n\t\t\tvar now                  = new Date().getTime(),\r\n\t\t\t_10_seconds_from_now = new Date(now + 10*1000);\r\n\t\t\t_20_seconds_from_now = new Date(now + 20*1000);\r\n\t\t\twindow.plugin.notification.local.schedule({\r\n\t\t\tid:      1,\r\n\t\t\ttitle:   'Reminder 1',\r\n\t\t\tmessage: 'Only 10 Mins Left for parking expires',\r\n\t\t\t//repeat:  'weekly',\r\n\t\t\tsound:   \"file://sounds/sound.mp3\",\r\n\t\t\tdate:    _10_seconds_from_now\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t\r\n\t\t\twindow.plugin.notification.local.schedule({\r\n\t\t\tid:      2,\r\n\t\t\ttitle:   'Reminder 2',\r\n\t\t\tmessage: 'Parking time expires',\r\n\t\t\t//repeat:  'weekly',\r\n\t\t\tsound:   \"file://sounds/sound.mp3\",\r\n\t\t\tdate:    _20_seconds_from_now\r\n\t\t\t});\r\n\t\t\twindow.location=\"timer.html\";\r\n\t\t}, false);\r\n\t\t\r\n\t\t</script>\r\n```"}}
{"actor":{"display_login":"gandhiselvarj"}}