use of com.kickstarter.services.apiresponses.PushNotificationEnvelope in project android-oss by kickstarter.
the class PushNotifications method displayNotificationFromSurveyResponseActivity.
private void displayNotificationFromSurveyResponseActivity(@NonNull final PushNotificationEnvelope envelope, @NonNull final SurveyResponse surveyResponse) {
final GCM gcm = envelope.gcm();
final PushNotificationEnvelope.Survey survey = envelope.survey();
if (survey == null) {
return;
}
final Notification notification = notificationBuilder(gcm.title(), gcm.alert(), CHANNEL_SURVEY).setContentIntent(surveyResponseContentIntent(envelope, surveyResponse)).build();
notificationManager().notify(envelope.signature(), notification);
}
Aggregations