-
Notifications
You must be signed in to change notification settings - Fork 259
fix: push notification flush events #5215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
08c3eb9
fix(aws): moved StoppableTimer to a shared packaged
tyllark acc79aa
fix(push): Added a timer to flush push notification events
tyllark dc5c08e
fix(push): Updated event source names to match Pinpoint documentation
tyllark 26f6564
chore(notifications): fixed spacing issue
tyllark 1ff5395
chore(notification): Made PinpointEventTypeSource private and depreca…
tyllark ab3dee1
chore(notifications): formatted file
tyllark 16b0318
Merge branch 'main' into fix/push-notification-flush-events
tyllark 05b35cb
Merge branch 'main' into fix/push-notification-flush-events
tyllark 4c2941f
Merge branch 'main' into fix/push-notification-flush-events
tyllark 90b7839
Merge branch 'main' into fix/push-notification-flush-events
tyllark 38c6ef9
Merge branch 'main' into fix/push-notification-flush-events
tyllark 7efaa10
chore(notifications): Removed extra StoppableTiemr Class
tyllark 25a071f
Merge branch 'main' into fix/push-notification-flush-events
tyllark 1116404
Merge branch 'main' into fix/push-notification-flush-events
tyllark f7fc301
Merge branch 'main' into fix/push-notification-flush-events
tyllark 4547023
Merge branch 'main' into fix/push-notification-flush-events
tyllark af5d352
Merge branch 'main' into fix/push-notification-flush-events
tyllark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.