swift-server-community / APNSwift

📱HTTP/2 Apple Push Notification Service built with swift - send push notifications to iOS, iPadOS, tvOS, macOS, watchOS, visionOS, and Safari!
Apache License 2.0
693 stars 105 forks source link

Fix crash when using AnyEncodable payload for alert and background notifications #200

Closed grighakobian closed 4 months ago

grighakobian commented 5 months ago

In this update, I've addressed an issue where using AnyEncodable for user-provided notification payloads caused a crash during alert or background notifications. These changes resolve the crash and ensure stable handling of AnyEncodable payloads.

wangzhizhou commented 4 months ago

This Merge fixed the problem described in: https://github.com/Flight-School/AnyCodable/issues/80

wangzhizhou commented 4 months ago

may we wait for an release version

wangzhizhou commented 4 months ago

@grighakobian Can you describe the reason caused this problem? Change the encode method order resolved this problem?