Skip to content

Commit

Permalink
Fix: deeplink null일 때 푸시 안 보내지는 문제
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhwanJee committed Nov 14, 2024
1 parent f834b3b commit d40054b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class PushSender(
return AndroidConfig.builder().apply {
notification.collapseKey?.let { setCollapseKey(it) }
putAllData(customData)
putData(DEEPLINK_CUSTOM_DATA_KEY, notification.link)
notification.link?.let { putData(DEEPLINK_CUSTOM_DATA_KEY, it) }
setPriority(AndroidConfig.Priority.HIGH)
}.build()
}
Expand All @@ -91,7 +91,7 @@ class PushSender(

return ApnsConfig.builder().apply {
putAllCustomData(customData)
putCustomData(DEEPLINK_CUSTOM_DATA_KEY, notification.link)
notification.link?.let { putCustomData(DEEPLINK_CUSTOM_DATA_KEY, it) }
setAps(aps)
notification.collapseKey?.let { putHeader("apns-collapse-id", it) }
}.build()
Expand Down

0 comments on commit d40054b

Please sign in to comment.