{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2587","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2587/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2587/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2587/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2587","id":369592224,"node_id":"MDU6SXNzdWUzNjk1OTIyMjQ=","number":2587,"title":"using mediaUrl with iOS (Firebase messaging for iOS)","user":{"login":"pliablepixels","id":4116654,"node_id":"MDQ6VXNlcjQxMTY2NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4116654?v=4","gravatar_id":"","url":"https://api.github.com/users/pliablepixels","html_url":"https://github.com/pliablepixels","followers_url":"https://api.github.com/users/pliablepixels/followers","following_url":"https://api.github.com/users/pliablepixels/following{/other_user}","gists_url":"https://api.github.com/users/pliablepixels/gists{/gist_id}","starred_url":"https://api.github.com/users/pliablepixels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pliablepixels/subscriptions","organizations_url":"https://api.github.com/users/pliablepixels/orgs","repos_url":"https://api.github.com/users/pliablepixels/repos","events_url":"https://api.github.com/users/pliablepixels/events{/privacy}","received_events_url":"https://api.github.com/users/pliablepixels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T15:07:23Z","updated_at":"2018-10-12T15:50:28Z","closed_at":"2018-10-12T15:50:28Z","author_association":"NONE","body":"(I've read the [other](https://github.com/phonegap/phonegap-plugin-push/issues/1347) issue about iOS not supporting images as of today, but this is via Firebase. I might be wrong, but I suppose the other issues are to do with native/non-fcm  rich messaging support for iOS in the plugin)\r\n\r\nMy understanding is that if I am using Firebase for iOS, I don't need the plugin to natively support picture messaging. If that assumption is correct, then my problem statement is - based on the payload I am sending and receiving, I don't see images in the notification. What am I doing wrong?\r\n\r\n\r\n### Expected Behavior\r\nI should see an image with the push\r\n\r\n### Actual Behaviour\r\nI don't see an image\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\n#### Steps to Reproduce \r\n\r\nThe messages are provided below. I've also added a notification service extension to the project and ensure it is embedded in the app.\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\niOS 12.0, iPhone X\r\n\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\ncordova: `8.0.0`\r\ncordova-android: `6.4.0`\r\n\r\n#### Plugin version\r\n\r\n`phonegap-plugin-push 2.1.3 \"PushPlugin\"`\r\n\r\n#### Sample Push Data Payload\r\n\r\nHere is the JSON my server is sending: (formatted for readability)\r\n\r\n```\r\nFinal JSON being sent is: {\r\n   \"notification\": {\r\n      \"badge\":1,\r\n      \"mutable_content\":\"true\",\r\n      \"title\":\"Unfinished Alarm (285653)\",\r\n      \"sound\":\"default\",\r\n      \"body\":\"Alarms: Unfinished Forced Web Forced Web (285653)  at 10:56 AM, Oct-12\",\r\n      \"content_available\":\"true\"},\r\n      \"data\":{\r\n          \"message\":\"alarmed frame\",\r\n     \"mediaUrl\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/FloorGoban.JPG/1024px-FloorGoban.JPG\",\r\n        \"myMessageId\":2,\"mid\":\"6\",\"eid\":\"285653\",\"summaryText\":\"285653\"},\"to\":\"d-o1Oh7P-etc-removed\"}\r\n```\r\n\r\nHere is the payload my app is receiving (app has exited) [Updated: this was _before_ I added the rich notification service extension. Now, when I get a message this handler is not called, but the message is displayed,  so I suppose I do need to wait for support?]\r\n\r\n```\r\n{\"additionalData\":{\"summaryText\":\"285653\",\"mid\":\"6\",\"google.c.a.e\":\"1\",\"message\":\"alarmed frame\",\"mutable-content\":\"1\",\"gcm.message_id\":\"0:1539356201958583%30fd6c3030fd6c30\",\"coldstart\":false,\"foreground\":false,\"mediaUrl\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/FloorGoban.JPG/1024px-FloorGoban.JPG\",\"content-available\":\"1\",\"myMessageId\":\"2\",\"eid\":\"285653\"},\"message\":\"Alarms: Unfinished Forced Web Forced Web (285653)  at 10:56 AM, Oct-12\",\"title\":\"Unfinished Alarm (285653)\",\"count\":1,\"sound\":\"default\"}\r\n````\r\n\r\n#### Sample Code that illustrates the problem\r\nN/A\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/429372277","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2587#issuecomment-429372277","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2587","id":429372277,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTM3MjI3Nw==","user":{"login":"pliablepixels","id":4116654,"node_id":"MDQ6VXNlcjQxMTY2NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4116654?v=4","gravatar_id":"","url":"https://api.github.com/users/pliablepixels","html_url":"https://github.com/pliablepixels","followers_url":"https://api.github.com/users/pliablepixels/followers","following_url":"https://api.github.com/users/pliablepixels/following{/other_user}","gists_url":"https://api.github.com/users/pliablepixels/gists{/gist_id}","starred_url":"https://api.github.com/users/pliablepixels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pliablepixels/subscriptions","organizations_url":"https://api.github.com/users/pliablepixels/orgs","repos_url":"https://api.github.com/users/pliablepixels/repos","events_url":"https://api.github.com/users/pliablepixels/events{/privacy}","received_events_url":"https://api.github.com/users/pliablepixels/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T15:50:28Z","updated_at":"2018-10-12T15:50:28Z","author_association":"NONE","body":"Okay, upon further reading, it looks like I need to manually add code to the remote notification extension to manage and download the image. I suppose I'm going to have to wait for explicit support in this plugin. I don't want to make these changes to Xcode and have them lost when someone git pulls and installs in a cordova environment. "}}
{"actor":{"display_login":"pliablepixels"}}