{"action":"created","issue":{"url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/566","repository_url":"https://api.github.com/repos/zo0r/react-native-push-notification","labels_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/566/comments","events_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/566/events","html_url":"https://github.com/zo0r/react-native-push-notification/issues/566","id":261828046,"number":566,"title":"Can't launch App when click on action of remote notification.","user":{"login":"taduyde","id":8236997,"avatar_url":"https://avatars2.githubusercontent.com/u/8236997?v=4","gravatar_id":"","url":"https://api.github.com/users/taduyde","html_url":"https://github.com/taduyde","followers_url":"https://api.github.com/users/taduyde/followers","following_url":"https://api.github.com/users/taduyde/following{/other_user}","gists_url":"https://api.github.com/users/taduyde/gists{/gist_id}","starred_url":"https://api.github.com/users/taduyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taduyde/subscriptions","organizations_url":"https://api.github.com/users/taduyde/orgs","repos_url":"https://api.github.com/users/taduyde/repos","events_url":"https://api.github.com/users/taduyde/events{/privacy}","received_events_url":"https://api.github.com/users/taduyde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-30T08:16:26Z","updated_at":"2018-05-12T12:56:27Z","closed_at":null,"author_association":"NONE","body":"I implemented actions for remote notifications as below, But I click Button accept, the App don't launch.\r\n\r\nimport PushNotificationAndroid from 'react-native-push-notification'\r\n\r\n(function() {\r\n  // Register all the valid actions for notifications here and add the action handler for each action\r\n  PushNotificationAndroid.registerNotificationActions(['Accept','Reject','Yes','No']);\r\n  DeviceEventEmitter.addListener('notificationActionReceived', function(action){\r\n    console.log ('Notification action received: ' + action);\r\n    const info = JSON.parse(action.dataJSON);\r\n    if (info.action == 'Accept') {\r\n      // Do work pertaining to Accept action here\r\n    } else if (info.action == 'Reject') {\r\n      // Do work pertaining to Reject action here\r\n    }\r\n    // Add all the required actions handlers\r\n  });\r\n})();\r\n\r\nHow can launch APP when click button actions remote notification?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/comments/388553473","html_url":"https://github.com/zo0r/react-native-push-notification/issues/566#issuecomment-388553473","issue_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/566","id":388553473,"user":{"login":"lluis-sancho","id":4437999,"avatar_url":"https://avatars1.githubusercontent.com/u/4437999?v=4","gravatar_id":"","url":"https://api.github.com/users/lluis-sancho","html_url":"https://github.com/lluis-sancho","followers_url":"https://api.github.com/users/lluis-sancho/followers","following_url":"https://api.github.com/users/lluis-sancho/following{/other_user}","gists_url":"https://api.github.com/users/lluis-sancho/gists{/gist_id}","starred_url":"https://api.github.com/users/lluis-sancho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lluis-sancho/subscriptions","organizations_url":"https://api.github.com/users/lluis-sancho/orgs","repos_url":"https://api.github.com/users/lluis-sancho/repos","events_url":"https://api.github.com/users/lluis-sancho/events{/privacy}","received_events_url":"https://api.github.com/users/lluis-sancho/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T12:56:26Z","updated_at":"2018-05-12T12:56:26Z","author_association":"NONE","body":"Hi @Fadi-Ghattas , \r\n\r\nan example:\r\n\r\n      DeviceEventEmitter.addListener('notificationActionReceived', function(action){\r\n        const info = JSON.parse(action.dataJSON);\r\n        //props.pushNotification.setApplicationIconBadgeNumber(0)\r\n        if (info.action == 'Profile') {\r\n          Linking.openURL('app_name://')\r\n        ...\r\n      }\r\n    }\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"lluis-sancho"}}