-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: iOS | Trigger "NotificationClickV2" (#71)
Update the iOS library to use the latest version that enables the correct triggering of the new NotificationClick event. Update the implementation of the "FirebaseMessagingEventProtocol" to trigger multiple events simultaneously, including the new NotificationClick event. Extend OSFCMClickableType and FirebaseNotificationType to implement the CustomStringConvertible protocol, applying the correct value to the description property.
- Loading branch information
1 parent
52b1165
commit 06ef073
Showing
26 changed files
with
20,595 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import OSFirebaseMessagingLib | ||
|
||
extension OSFCMClickableType: CustomStringConvertible { | ||
public var description: String { | ||
var result: String | ||
switch self { | ||
case .notification(latestVersion: let latestVersion): | ||
result = "notificationClick" | ||
if latestVersion { | ||
result += "V2" | ||
} | ||
case .action: | ||
result = "interalRouteActionClick" | ||
@unknown default: | ||
preconditionFailure("Not supposed to get here") | ||
} | ||
|
||
return result | ||
} | ||
} | ||
|
||
extension FirebaseNotificationType: CustomStringConvertible { | ||
public var description: String { "\(self == .silentNotification ? "silent": "default")Notification" } | ||
} |
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
Binary file modified
BIN
-35 Bytes
(96%)
.../OSFirebaseMessagingLib.xcframework/ios-arm64/OSFirebaseMessagingLib.framework/Info.plist
Binary file not shown.
Oops, something went wrong.