Skip to content

Commit

Permalink
fix(aws-amplify-react-native): expose url and deeplink from pinpoint …
Browse files Browse the repository at this point in the history
…notification context

fix(aws-amplify-react-native): expose url and deeplink from pinpoint notification context
  • Loading branch information
powerful23 authored Jun 27, 2018
2 parents b87f745 + 5336e76 commit fc081b8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export default class PushNotification {
treatment_id: dataPayload['pinpoint.campaign.treatment_id']
};
const pinpoint = {
campaign
campaign,
deeplink: dataPayload['pinpoint.deeplink'],
url: dataPayload['pinpoint.url'],
};
ret = {
title: dataPayload['pinpoint.notification.title'],
Expand Down Expand Up @@ -217,4 +219,4 @@ export default class PushNotification {
}
return ret;
}
}
}

0 comments on commit fc081b8

Please sign in to comment.