{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/640","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/640/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/640/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/640","id":135675499,"number":640,"title":"Device vibrates and shows notification in the tray even in the foreground #android","user":{"login":"markeeftb","id":3172570,"avatar_url":"https://avatars.githubusercontent.com/u/3172570?v=3","gravatar_id":"","url":"https://api.github.com/users/markeeftb","html_url":"https://github.com/markeeftb","followers_url":"https://api.github.com/users/markeeftb/followers","following_url":"https://api.github.com/users/markeeftb/following{/other_user}","gists_url":"https://api.github.com/users/markeeftb/gists{/gist_id}","starred_url":"https://api.github.com/users/markeeftb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markeeftb/subscriptions","organizations_url":"https://api.github.com/users/markeeftb/orgs","repos_url":"https://api.github.com/users/markeeftb/repos","events_url":"https://api.github.com/users/markeeftb/events{/privacy}","received_events_url":"https://api.github.com/users/markeeftb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/android","name":"android","color":"BFD4F2"},{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T08:57:21Z","updated_at":"2016-02-23T20:28:57Z","closed_at":null,"body":"On Android 5.0.2 while the app is in the foreground, it shows the notification in the status bar and vibrates, while it shouldn't. \r\n\r\nI initialize the app using:\r\n\r\n`push = PushNotification.init({\r\n            \"android\": {\"vibrate\": \"false\", \"senderID\": senderid\r\n            } \r\n       \t\t});`\r\n\r\n\r\nAny ideas on how to change that behaviour?"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/187888938","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/640#issuecomment-187888938","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/640","id":187888938,"user":{"login":"markeeftb","id":3172570,"avatar_url":"https://avatars.githubusercontent.com/u/3172570?v=3","gravatar_id":"","url":"https://api.github.com/users/markeeftb","html_url":"https://github.com/markeeftb","followers_url":"https://api.github.com/users/markeeftb/followers","following_url":"https://api.github.com/users/markeeftb/following{/other_user}","gists_url":"https://api.github.com/users/markeeftb/gists{/gist_id}","starred_url":"https://api.github.com/users/markeeftb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markeeftb/subscriptions","organizations_url":"https://api.github.com/users/markeeftb/orgs","repos_url":"https://api.github.com/users/markeeftb/repos","events_url":"https://api.github.com/users/markeeftb/events{/privacy}","received_events_url":"https://api.github.com/users/markeeftb/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T20:28:57Z","updated_at":"2016-02-23T20:28:57Z","body":"Hi! There you go:\r\n\r\n`{  \"registration_ids\" : [ \"xxxx\",\"xxxxx\" ], \"collapse_key\" : \"p773128688\" , \"delay_while_idle\" : false , \"time_to_live\" : 0 , \"data\": {                 \"title\" : \"John has joined the discussion\"               , \"message\" : \"Discussion started\"               , \"link\" : \"discuss\"            }}`\r\n\r\nWhen I send empty 'message' - the notification doesn't show up in foreground."}}