{"action":"created","issue":{"url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/169","repository_url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin","labels_url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/169/comments","events_url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/169/events","html_url":"https://github.com/jpush/jpush-phonegap-plugin/issues/169","id":179674235,"number":169,"title":"Get push notification while App in foreground iOS","user":{"login":"njleonzhang","id":13174059,"avatar_url":"https://avatars.githubusercontent.com/u/13174059?v=3","gravatar_id":"","url":"https://api.github.com/users/njleonzhang","html_url":"https://github.com/njleonzhang","followers_url":"https://api.github.com/users/njleonzhang/followers","following_url":"https://api.github.com/users/njleonzhang/following{/other_user}","gists_url":"https://api.github.com/users/njleonzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/njleonzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njleonzhang/subscriptions","organizations_url":"https://api.github.com/users/njleonzhang/orgs","repos_url":"https://api.github.com/users/njleonzhang/repos","events_url":"https://api.github.com/users/njleonzhang/events{/privacy}","received_events_url":"https://api.github.com/users/njleonzhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T03:52:10Z","updated_at":"2016-09-28T05:50:33Z","closed_at":null,"body":"http://stackoverflow.com/questions/14872088/get-push-notification-while-app-in-foreground-ios\r\n\r\nios9上的默认情况下，如果app在前台，则不会show一个notification alert，但是这个行为挺奇怪的，原生应用需要自己写的代码来实现这种场景下的notification alert，作为一个plugin， 我觉得jpush应该实现一个配置项，让app的前台notification alert可以实现。\r\n"},"comment":{"url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/comments/250077915","html_url":"https://github.com/jpush/jpush-phonegap-plugin/issues/169#issuecomment-250077915","issue_url":"https://api.github.com/repos/jpush/jpush-phonegap-plugin/issues/169","id":250077915,"user":{"login":"pikacode","id":12589575,"avatar_url":"https://avatars.githubusercontent.com/u/12589575?v=3","gravatar_id":"","url":"https://api.github.com/users/pikacode","html_url":"https://github.com/pikacode","followers_url":"https://api.github.com/users/pikacode/followers","following_url":"https://api.github.com/users/pikacode/following{/other_user}","gists_url":"https://api.github.com/users/pikacode/gists{/gist_id}","starred_url":"https://api.github.com/users/pikacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikacode/subscriptions","organizations_url":"https://api.github.com/users/pikacode/orgs","repos_url":"https://api.github.com/users/pikacode/repos","events_url":"https://api.github.com/users/pikacode/events{/privacy}","received_events_url":"https://api.github.com/users/pikacode/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T05:50:33Z","updated_at":"2016-09-28T05:50:33Z","body":"- Apple 早先的考虑是：推送的作用是提醒用户有新的信息请点击应用，已经处于前台用户没必要再点击应用，直接跳转到具体页面给用户就行了\r\n- iOS 10 系统已经支持了在前台展示横幅\r\n- 判断 App 是否在前台并写一个 alert 你不会吗？"}}
{"actor":{"display_login":"pikacode"}}