-
Notifications
You must be signed in to change notification settings - Fork 16
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
chore: fix double notification routing and segment callback #473
chore: fix double notification routing and segment callback #473
Conversation
@@ -29,18 +29,28 @@ class PushNotificationsManager: NSObject { | |||
private let deepLinkManager: DeepLinkManager | |||
private let storage: CoreStorage | |||
private let api: API | |||
private let segemntService: SegmentAnalyticsService? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo segemntService -> segmentService
public init(deepLinkManager: DeepLinkManager, | ||
storage: CoreStorage, | ||
api: API, | ||
config: ConfigProtocol, | ||
segmentService: SegmentAnalyticsService? | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public init(deepLinkManager: DeepLinkManager, | |
storage: CoreStorage, | |
api: API, | |
config: ConfigProtocol, | |
segmentService: SegmentAnalyticsService? | |
) { | |
public init( | |
deepLinkManager: DeepLinkManager, | |
storage: CoreStorage, | |
api: API, | |
config: ConfigProtocol, | |
segmentService: SegmentAnalyticsService? | |
) { |
OpenEdX/DI/AppAssembly.swift
Outdated
config: r.resolve(ConfigProtocol.self)!, | ||
segmentService: r.resolve(SegmentAnalyticsService.self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use an Analytics abstraction and not rely on the Segment dependency here?
We are going to migrate all third-party services to plugins, and this dependency could make it harder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR fixes the issue with push notifications.
Issue details: #472