{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/522","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/522/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/522/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/522","id":127085191,"number":522,"title":"Allow to conditionally force notifications when app is in foreground (Feature suggestion)","user":{"login":"tzafrir","id":77340,"avatar_url":"https://avatars.githubusercontent.com/u/77340?v=3","gravatar_id":"","url":"https://api.github.com/users/tzafrir","html_url":"https://github.com/tzafrir","followers_url":"https://api.github.com/users/tzafrir/followers","following_url":"https://api.github.com/users/tzafrir/following{/other_user}","gists_url":"https://api.github.com/users/tzafrir/gists{/gist_id}","starred_url":"https://api.github.com/users/tzafrir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzafrir/subscriptions","organizations_url":"https://api.github.com/users/tzafrir/orgs","repos_url":"https://api.github.com/users/tzafrir/repos","events_url":"https://api.github.com/users/tzafrir/events{/privacy}","received_events_url":"https://api.github.com/users/tzafrir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-17T09:55:08Z","updated_at":"2016-09-27T17:06:47Z","closed_at":null,"body":"(Android platform, maybe relevant to other platforms too?)\r\n\r\nUse case: In-app chat screen. I'd like to show notifications to the user when new messages come in, but not when the user is currently in the chat screen.\r\n\r\nSimilar behavior can be seen in Whatsapp, Google Hangouts, etc.\r\n\r\nFrom what I gather, the \"forcePush\" setting is global and cannot be set per push, or consult with application state to decide if to show push or not."},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/249930415","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/522#issuecomment-249930415","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/522","id":249930415,"user":{"login":"geshub","id":4352726,"avatar_url":"https://avatars.githubusercontent.com/u/4352726?v=3","gravatar_id":"","url":"https://api.github.com/users/geshub","html_url":"https://github.com/geshub","followers_url":"https://api.github.com/users/geshub/followers","following_url":"https://api.github.com/users/geshub/following{/other_user}","gists_url":"https://api.github.com/users/geshub/gists{/gist_id}","starred_url":"https://api.github.com/users/geshub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geshub/subscriptions","organizations_url":"https://api.github.com/users/geshub/orgs","repos_url":"https://api.github.com/users/geshub/repos","events_url":"https://api.github.com/users/geshub/events{/privacy}","received_events_url":"https://api.github.com/users/geshub/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T17:06:47Z","updated_at":"2016-09-27T17:06:47Z","body":"Just checking again now that IOS10 seems to allow foreground notifications.\r\nWould it be possible to show push notifications even when the application is running in the foreground ?"}}
{"actor":{"display_login":"geshub"}}