{"action":"created","issue":{"url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/27","repository_url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK","labels_url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/27/comments","events_url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/27/events","html_url":"https://github.com/blueshift-labs/Blueshift-Android-SDK/pull/27","id":183030128,"number":27,"title":"Added separate actions on carousel image clicks","user":{"login":"rahulrvp","id":974499,"avatar_url":"https://avatars.githubusercontent.com/u/974499?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulrvp","html_url":"https://github.com/rahulrvp","followers_url":"https://api.github.com/users/rahulrvp/followers","following_url":"https://api.github.com/users/rahulrvp/following{/other_user}","gists_url":"https://api.github.com/users/rahulrvp/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulrvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulrvp/subscriptions","organizations_url":"https://api.github.com/users/rahulrvp/orgs","repos_url":"https://api.github.com/users/rahulrvp/repos","events_url":"https://api.github.com/users/rahulrvp/events{/privacy}","received_events_url":"https://api.github.com/users/rahulrvp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nipunbhatia","id":18123535,"avatar_url":"https://avatars.githubusercontent.com/u/18123535?v=3","gravatar_id":"","url":"https://api.github.com/users/nipunbhatia","html_url":"https://github.com/nipunbhatia","followers_url":"https://api.github.com/users/nipunbhatia/followers","following_url":"https://api.github.com/users/nipunbhatia/following{/other_user}","gists_url":"https://api.github.com/users/nipunbhatia/gists{/gist_id}","starred_url":"https://api.github.com/users/nipunbhatia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipunbhatia/subscriptions","organizations_url":"https://api.github.com/users/nipunbhatia/orgs","repos_url":"https://api.github.com/users/nipunbhatia/repos","events_url":"https://api.github.com/users/nipunbhatia/events{/privacy}","received_events_url":"https://api.github.com/users/nipunbhatia/received_events","type":"User","site_admin":false},"assignees":[{"login":"nipunbhatia","id":18123535,"avatar_url":"https://avatars.githubusercontent.com/u/18123535?v=3","gravatar_id":"","url":"https://api.github.com/users/nipunbhatia","html_url":"https://github.com/nipunbhatia","followers_url":"https://api.github.com/users/nipunbhatia/followers","following_url":"https://api.github.com/users/nipunbhatia/following{/other_user}","gists_url":"https://api.github.com/users/nipunbhatia/gists{/gist_id}","starred_url":"https://api.github.com/users/nipunbhatia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipunbhatia/subscriptions","organizations_url":"https://api.github.com/users/nipunbhatia/orgs","repos_url":"https://api.github.com/users/nipunbhatia/repos","events_url":"https://api.github.com/users/nipunbhatia/events{/privacy}","received_events_url":"https://api.github.com/users/nipunbhatia/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-14T11:46:05Z","updated_at":"2016-10-14T12:28:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/pulls/27","html_url":"https://github.com/blueshift-labs/Blueshift-Android-SDK/pull/27","diff_url":"https://github.com/blueshift-labs/Blueshift-Android-SDK/pull/27.diff","patch_url":"https://github.com/blueshift-labs/Blueshift-Android-SDK/pull/27.patch"},"body":"> Duplicate of PR #26 \r\n\r\n## Changes: ##\r\n- Added separate click action support for each carousel element.\r\n- If action is not present, default action will be app open (`ACTION_OPEN_APP`).\r\n- Added `HashMap` `data` inside `Message` and `CarouselElement` for passing extra data.\r\n- Supported actions are\r\n  - ACTION_VIEW\r\n  - ACTION_BUY\r\n  - ACTION_OPEN_CART\r\n  - ACTION_OPEN_OFFER_PAGE\r\n  - ACTION_OPEN_APP\r\n\r\nSample JSON for carousel element\r\n```json\r\n{\r\n  \"image_url\" : \"http://image.jpg\",\r\n  \"action\" : \"ACTION_BUY\",\r\n  \"data\" : {\r\n    \"string_key\" : \"sample string\",\r\n    \"string_array\" : [ \"item_1\" , \"item_2\" ],\r\n    \"object\" : { \"key\" : \"value\" }\r\n  }\r\n}\r\n```\r\nThe above carousel element tells to open the cart page and will pass the `Message` and `CarouselElement` object as `Bundle` extras into the activity, when clicked on the carousel image.\r\n\r\nMore details check this link with supported actions.\r\nhttps://github.com/blueshift-labs/Blueshift-Android-SDK/wiki/Push-Notifications-&-Alerts#2-override-notification-action-receiver"},"comment":{"url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/comments/253786207","html_url":"https://github.com/blueshift-labs/Blueshift-Android-SDK/pull/27#issuecomment-253786207","issue_url":"https://api.github.com/repos/blueshift-labs/Blueshift-Android-SDK/issues/27","id":253786207,"user":{"login":"rahulrvp","id":974499,"avatar_url":"https://avatars.githubusercontent.com/u/974499?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulrvp","html_url":"https://github.com/rahulrvp","followers_url":"https://api.github.com/users/rahulrvp/followers","following_url":"https://api.github.com/users/rahulrvp/following{/other_user}","gists_url":"https://api.github.com/users/rahulrvp/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulrvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulrvp/subscriptions","organizations_url":"https://api.github.com/users/rahulrvp/orgs","repos_url":"https://api.github.com/users/rahulrvp/repos","events_url":"https://api.github.com/users/rahulrvp/events{/privacy}","received_events_url":"https://api.github.com/users/rahulrvp/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T12:28:20Z","updated_at":"2016-10-14T12:28:20Z","body":"There is one more way to do the URL deep-linking. We can use the VIEW action of an intent to open available web browsers. CleverTap does that method. But this method is little difficult for the app developers to do in-app deep-linking unless the user chooses the app as default app to open such links."}}
{"actor":{"display_login":"rahulrvp"}}