{"action":"created","issue":{"url":"https://api.github.com/repos/layerhq/layer-websdk/issues/104","repository_url":"https://api.github.com/repos/layerhq/layer-websdk","labels_url":"https://api.github.com/repos/layerhq/layer-websdk/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/layerhq/layer-websdk/issues/104/comments","events_url":"https://api.github.com/repos/layerhq/layer-websdk/issues/104/events","html_url":"https://github.com/layerhq/layer-websdk/issues/104","id":174901557,"number":104,"title":"2.0.1 Missing features and not working on Safari","user":{"login":"bartoszhernas","id":1025587,"avatar_url":"https://avatars.githubusercontent.com/u/1025587?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszhernas","html_url":"https://github.com/bartoszhernas","followers_url":"https://api.github.com/users/bartoszhernas/followers","following_url":"https://api.github.com/users/bartoszhernas/following{/other_user}","gists_url":"https://api.github.com/users/bartoszhernas/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszhernas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszhernas/subscriptions","organizations_url":"https://api.github.com/users/bartoszhernas/orgs","repos_url":"https://api.github.com/users/bartoszhernas/repos","events_url":"https://api.github.com/users/bartoszhernas/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszhernas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-03T15:20:43Z","updated_at":"2016-09-06T20:36:41Z","closed_at":null,"body":"Hi guys,\r\n\r\nI have tried to update to the latest package: 2.0.1.\r\n\r\nFirst, it doesn't work on Safari at all:\r\n\r\n[https://www.dropbox.com/s/9sna4wzm5bmfidg/Screenshot%202016-09-03%2016.59.06.png?dl=0](https://www.dropbox.com/s/9sna4wzm5bmfidg/Screenshot%202016-09-03%2016.59.06.png?dl=0)\r\n\r\nSecond, it doesn't return anymore `image/png+preview`, same for videos and also JSON sizes"},"comment":{"url":"https://api.github.com/repos/layerhq/layer-websdk/issues/comments/245082529","html_url":"https://github.com/layerhq/layer-websdk/issues/104#issuecomment-245082529","issue_url":"https://api.github.com/repos/layerhq/layer-websdk/issues/104","id":245082529,"user":{"login":"bartoszhernas","id":1025587,"avatar_url":"https://avatars.githubusercontent.com/u/1025587?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszhernas","html_url":"https://github.com/bartoszhernas","followers_url":"https://api.github.com/users/bartoszhernas/followers","following_url":"https://api.github.com/users/bartoszhernas/following{/other_user}","gists_url":"https://api.github.com/users/bartoszhernas/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszhernas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszhernas/subscriptions","organizations_url":"https://api.github.com/users/bartoszhernas/orgs","repos_url":"https://api.github.com/users/bartoszhernas/repos","events_url":"https://api.github.com/users/bartoszhernas/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszhernas/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T20:36:41Z","updated_at":"2016-09-06T20:36:41Z","body":"I am sorry, it works on Safari (something else was breaking the build). I am still getting errors about deprecation but chat works just fine. \r\n\r\n1. Yes, what I meant is that when I started implementing previews and sizes for images on web (your example React app doesn't support it) I have wrongly assumed that it is parsed by the server. It is not, it is being sent by iOS. So technically iOS, when sending image, sends three parts: original image, preview, json sizes.\r\n\r\nThen when I have implemented sending rich content via web, I have just been sending original images and of course not getting image sizes and previews anymore. On iOS it is displayed properly, and I have updated my web implementation to assume it can be missing. Once again, bad assumption on my side.\r\n\r\n2.  Yes I am sending this as text/plain. We are also sending custom json with mime_type `ahoy/notification` . This has more than 2KB, so it is delivered as blob to web sdk. On iOS it works just fine :) On web we have updated the code, so it also works. \r\n\r\n3. Already mentioned it, all works fine, sorry for the mess.\r\n\r\nI have found now weird bug (devs will mark it as missing feature :D): iOS only accepts image/jpeg as images.\r\n\r\nIt was a suprise for us, when we have sent PNG and it was displayed properly on web platforms but not in iOS. iOS also ignores not known types (which is correct in my opinion) and so the image had never been displayed.\r\n\r\nSo my question is, does layer-web-sdk accepts rich content as base64 and not only File object?\r\nOr maybe you know how to convert png to jpeg in javascript and deliver it as JPEG?"}}
{"actor":{"display_login":"bartoszhernas"}}