{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/172","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/172/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/172/events","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/172","id":32004709,"number":172,"title":"Banners not displaying on iOS","user":{"login":"Jedek","id":2725705,"avatar_url":"https://avatars.githubusercontent.com/u/2725705?v=3","gravatar_id":"","url":"https://api.github.com/users/Jedek","html_url":"https://github.com/Jedek","followers_url":"https://api.github.com/users/Jedek/followers","following_url":"https://api.github.com/users/Jedek/following{/other_user}","gists_url":"https://api.github.com/users/Jedek/gists{/gist_id}","starred_url":"https://api.github.com/users/Jedek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jedek/subscriptions","organizations_url":"https://api.github.com/users/Jedek/orgs","repos_url":"https://api.github.com/users/Jedek/repos","events_url":"https://api.github.com/users/Jedek/events{/privacy}","received_events_url":"https://api.github.com/users/Jedek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-04-22T19:51:04Z","updated_at":"2015-11-11T13:36:46Z","closed_at":"2014-06-06T12:18:45Z","body":"Hi there. I've recently started to use this plugin and it works perfectly on Android. I have trouble getting it to work on iOS however. I got it to work the other day, but now it simply refuses. Even if I use the sample Phonegap project created by the CLI phonegap build.\r\n\r\nI'm using phonegap build to add the plugin to my project. My config xml is as followed:\r\n\r\n    <name>Notification test</name>\r\n\r\n    <description>\r\n        Notification test for Phonegap\r\n    </description>\r\n\r\n    <author href=\"http://www.flavour.nl\" email=\"info@flavour.nl\">\r\n        Flavour Team\r\n    </author>\r\n\r\n    <!-- Customize your app and platform with the preference element. -->\r\n    <preference name=\"phonegap-version\"           value=\"3.4.0\" />          <!-- all: current version of PhoneGap -->\r\n    <preference name=\"orientation\"                value=\"portrait\" />        <!-- all: default means both landscape and portrait are enabled -->\r\n    <preference name=\"target-device\"              value=\"handset\" />      <!-- all: possible values handset, tablet, or universal -->\r\n    <preference name=\"fullscreen\"                 value=\"false\" />           <!-- all: hides the status bar at the top of the screen -->\r\n    <preference name=\"prerendered-icon\"           value=\"true\" />           <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->\r\n    <preference name=\"ios-statusbarstyle\"         value=\"black-opaque\" />   <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->\r\n    <preference name=\"detect-data-types\"          value=\"true\" />           <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->\r\n    <preference name=\"exit-on-suspend\"            value=\"false\" />          <!-- ios: if set to true, app will terminate when home button is pressed -->\r\n    <preference name=\"auto-hide-splash-screen\"    value=\"true\" />           <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->\r\n    <preference name=\"disable-cursor\"             value=\"false\" />          <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->\r\n    <preference name=\"android-minSdkVersion\"      value=\"7\" />              <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->\r\n    <preference name=\"android-installLocation\"    value=\"auto\" />           <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->\r\n    <preference name=\"DisallowOverscroll\" \t\t  value=\"true\" />\r\n\t<preference name=\"webviewbounce\" \t\t\t  value=\"false\" />\r\n\r\n    <!-- Plugins -->\r\n   \t<gap:plugin name=\"de.appplant.cordova.plugin.local-notification\"/> \r\n    \r\n    <access origin=\"*\"/> <!-- allow local pages -->\r\n\r\n\r\n</widget>\r\n\r\n\r\nI then proceeded to do a check on the deviceready event, as suggested in the readme:\r\n\r\n    <head>\r\n        <meta charset=\"utf-8\" />\r\n        <meta name=\"format-detection\" content=\"telephone=no\" />\r\n        <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->\r\n        <meta name=\"viewport\" content=\"user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi\" />\r\n        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/index.css\" />\r\n        <title>Hello World</title>\r\n    </head>\r\n    <body>\r\n        <div class=\"app\">\r\n            <h1>PhoneGap</h1>\r\n            <div id=\"deviceready\" class=\"blink\">\r\n                <p class=\"event listening\">Connecting to Device</p>\r\n                <p class=\"event received\">Device is Ready</p>\r\n            </div>\r\n        </div>\r\n        <script type=\"text/javascript\" src=\"phonegap.js\"></script>\r\n        <script type=\"text/javascript\" src=\"js/index.js\"></script>\r\n        <script type=\"text/javascript\">\r\n            app.initialize();\r\n            \r\n            document.addEventListener('deviceready', function () {\r\n\t\t\t    window.plugin.notification.local.add({ message: 'Great app!' });\r\n\t\t\t}, false);\r\n        </script>\r\n    </body>\r\n\r\n\r\nIt fires instantly on Android, but not on iOS. Am I doing something wrong, or did I forget something?"},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/comments/155786740","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/172#issuecomment-155786740","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/172","id":155786740,"user":{"login":"McGern","id":2475102,"avatar_url":"https://avatars.githubusercontent.com/u/2475102?v=3","gravatar_id":"","url":"https://api.github.com/users/McGern","html_url":"https://github.com/McGern","followers_url":"https://api.github.com/users/McGern/followers","following_url":"https://api.github.com/users/McGern/following{/other_user}","gists_url":"https://api.github.com/users/McGern/gists{/gist_id}","starred_url":"https://api.github.com/users/McGern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McGern/subscriptions","organizations_url":"https://api.github.com/users/McGern/orgs","repos_url":"https://api.github.com/users/McGern/repos","events_url":"https://api.github.com/users/McGern/events{/privacy}","received_events_url":"https://api.github.com/users/McGern/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T13:36:46Z","updated_at":"2015-11-11T13:36:46Z","body":"Hi,\r\n\r\nMy issue is similar. When I first install the app, the notification will only appear in the notification drawer. If I go into notification settings for the app and switch to a different notification type (e.g. alert) they will start showing up. If I switch back to \"banner\" they will continue to show, even if there are new builds. It will come back again if I uninstall the app and start again.\r\n\r\nAny help would be appreciated,\r\n\r\nThanks,\r\nJarrod "}}