-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: push notification flush events (#5215)
fix: push notification flush events (#5215)
- Loading branch information
Showing
7 changed files
with
87 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_event_type_source.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
/// {@template amplify_core.push.pinpoint_event_source} | ||
/// The source of a push notification. | ||
/// | ||
/// Pinpoint offers two ways of sending push notifications to users campaigns and journeys. | ||
/// | ||
/// See also: | ||
/// [Campaigns](https://docs.aws.amazon.com/pinpoint/latest/userguide/campaigns.html) | ||
/// [Journeys](https://docs.aws.amazon.com/pinpoint/latest/userguide/journeys.html) | ||
/// {@endtemplate} | ||
enum PinpointEventTypeSource { | ||
/// [campaign] represents a push notification originating from a campaign | ||
/// [Campaign Events](https://docs.aws.amazon.com/pinpoint/latest/developerguide/event-streams-data-campaign.html) | ||
campaign('_campaign'), | ||
|
||
/// [journey] represents a push notification originating from a journey | ||
/// [Journey Events](https://docs.aws.amazon.com/pinpoint/latest/developerguide/event-streams-data-journey.html) | ||
journey('_journey'); | ||
|
||
const PinpointEventTypeSource(this.name); | ||
|
||
/// [name] contains the source prefix for event_type attributes | ||
final String name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters