{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/225","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/225/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/225/events","html_url":"https://github.com/wix/react-native-navigation/issues/225","id":172591885,"number":225,"title":"Deep Linking on iOS","user":{"login":"bbrock25","id":2653377,"avatar_url":"https://avatars.githubusercontent.com/u/2653377?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrock25","html_url":"https://github.com/bbrock25","followers_url":"https://api.github.com/users/bbrock25/followers","following_url":"https://api.github.com/users/bbrock25/following{/other_user}","gists_url":"https://api.github.com/users/bbrock25/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrock25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrock25/subscriptions","organizations_url":"https://api.github.com/users/bbrock25/orgs","repos_url":"https://api.github.com/users/bbrock25/repos","events_url":"https://api.github.com/users/bbrock25/events{/privacy}","received_events_url":"https://api.github.com/users/bbrock25/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T01:23:35Z","updated_at":"2016-08-23T08:55:49Z","closed_at":null,"body":"I'm not able to register to incoming deep links from outside the app.\r\n\r\nmy dev dependencies: \r\n```\r\n    \"react\": \"^0.14.5\",\r\n    \"react-native\": \"0.25.1\",\r\n    \"react-native-navigation\": \"^1.0.30\",\r\n    \"react-redux\": \"^4.4.5\",\r\n    \"redux\": \"^3.5.2\",\r\n    \"redux-thunk\": \"^2.1.0\"\r\n```\r\n```javascript \r\nclass OrderList extends Component {\r\n\r\n  constructor(props) {\r\n    super(props);\r\n    ...\r\n    this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));\r\n  }\r\n\r\n  onNavigatorEvent(event) {\r\n    console.log(event);\r\n    if (event.id === 'drawer') {\r\n      this.props.navigator.toggleDrawer({\r\n        side: 'left',\r\n        animated: true,\r\n      });\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI can log the event when creating a deep link action from within the app, but it never fires when linking to the app from an external source, such as a push notification or safari in the simulator. \r\n\r\nThank you by the way for the great work on this project. It is a much needed utility for React Native!"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/241668939","html_url":"https://github.com/wix/react-native-navigation/issues/225#issuecomment-241668939","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/225","id":241668939,"user":{"login":"guyca","id":12352397,"avatar_url":"https://avatars.githubusercontent.com/u/12352397?v=3","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T08:55:49Z","updated_at":"2016-08-23T08:55:49Z","body":"We use `DeviceEventEmitter` to send event from native to JS when a push message is received, then handle deep link deep link logic in JS. \r\nWhen the event is received, you can update your state, or register listener on your screens to handle the external deeplink."}}
{"actor":{"display_login":"guyca"}}