{"action":"created","issue":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1798","repository_url":"https://api.github.com/repos/codenameone/CodenameOne","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1798/labels{/name}","comments_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1798/comments","events_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1798/events","html_url":"https://github.com/codenameone/CodenameOne/issues/1798","id":159327113,"number":1798,"title":"Type 4 push crashes running iOS application","user":{"login":"codenameone","id":2353641,"avatar_url":"https://avatars.githubusercontent.com/u/2353641?v=3","gravatar_id":"","url":"https://api.github.com/users/codenameone","html_url":"https://github.com/codenameone","followers_url":"https://api.github.com/users/codenameone/followers","following_url":"https://api.github.com/users/codenameone/following{/other_user}","gists_url":"https://api.github.com/users/codenameone/gists{/gist_id}","starred_url":"https://api.github.com/users/codenameone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenameone/subscriptions","organizations_url":"https://api.github.com/users/codenameone/orgs","repos_url":"https://api.github.com/users/codenameone/repos","events_url":"https://api.github.com/users/codenameone/events{/privacy}","received_events_url":"https://api.github.com/users/codenameone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shannah","id":2677562,"avatar_url":"https://avatars.githubusercontent.com/u/2677562?v=3","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/codenameone/CodenameOne/milestones/7","html_url":"https://github.com/codenameone/CodenameOne/milestones/Version%203.5","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/milestones/7/labels","id":1521585,"number":7,"title":"Version 3.5","description":"","creator":{"login":"codenameone","id":2353641,"avatar_url":"https://avatars.githubusercontent.com/u/2353641?v=3","gravatar_id":"","url":"https://api.github.com/users/codenameone","html_url":"https://github.com/codenameone","followers_url":"https://api.github.com/users/codenameone/followers","following_url":"https://api.github.com/users/codenameone/following{/other_user}","gists_url":"https://api.github.com/users/codenameone/gists{/gist_id}","starred_url":"https://api.github.com/users/codenameone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenameone/subscriptions","organizations_url":"https://api.github.com/users/codenameone/orgs","repos_url":"https://api.github.com/users/codenameone/repos","events_url":"https://api.github.com/users/codenameone/events{/privacy}","received_events_url":"https://api.github.com/users/codenameone/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":21,"state":"open","created_at":"2016-01-20T07:27:20Z","updated_at":"2016-06-14T16:00:01Z","due_on":"2016-08-01T21:00:00Z","closed_at":null},"comments":2,"created_at":"2016-06-09T04:43:42Z","updated_at":"2016-06-14T16:24:08Z","closed_at":null,"body":"This was reported here: http://stackoverflow.com/questions/37704651/codename-one-push-notification-type-4-crashes-on-ios\r\n\r\nIt looks like a regression related to work on the background notification."},"comment":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/comments/225936467","html_url":"https://github.com/codenameone/CodenameOne/issues/1798#issuecomment-225936467","issue_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1798","id":225936467,"user":{"login":"shannah","id":2677562,"avatar_url":"https://avatars.githubusercontent.com/u/2677562?v=3","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T16:24:07Z","updated_at":"2016-06-14T16:24:07Z","body":"Actually, the problem is pretty clear here.  On this line\r\nhttps://github.com/codenameone/CodenameOne/blob/master/Ports/iOSPort/nativeSources/CodenameOne_GLAppDelegate.m#L116\r\nIt thinks it's going to get a string from the \"alert\" key.  But the structure is:\r\n\r\n~~~~\r\n{\r\n        aps =     {\r\n            alert =         {\r\n                body = \"Test Body\";\r\n                title = \"Notification Test\";\r\n            };\r\n            sound = default;\r\n        };\r\n    }\r\n~~~~\r\n\r\nI.e. \"alert\" will be a Dictionary with keys \"body\" and \"title\".\r\n\r\nThis is easy to fix (just check if it's a Dictionary, and handle it differently), I'm just not sure what value the push callback is expecting to receive here  (I don't have any test apps with push to work with right now).\r\n\r\n\r\n@codenameone  Do I concatenate \"title\" and \"body\" into a string and pass that to the push callback with type `4`.\r\n\r\nE.g.  \"Notification Test;Test Body\"\r\n?\r\n\r\n\r\n"}}
{"actor":{"display_login":"shannah"}}