mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-17 08:05:44 -05:00
## Summary Implements the push send and rate limit information in Swift using Vapor. ## Any other notes This will allow us to get off Firebase, which gives a few immediate benefits: - We can send PushKit notifications for complications, widgets, and location updates. - We remove the last SDK that uses network connectivity to third parties.
15 lines
422 B
Swift
15 lines
422 B
Swift
import SharedPush
|
|
|
|
class FakeLegacyNotificationParser: LegacyNotificationParser {
|
|
var resultHandler: (_ input: [String: Any]) -> LegacyNotificationParserResult = { _ in
|
|
.init(headers: [:], payload: [:])
|
|
}
|
|
|
|
func result(
|
|
from input: [String: Any],
|
|
defaultRegistrationInfo: @autoclosure () -> [String: String]
|
|
) -> LegacyNotificationParserResult {
|
|
resultHandler(input)
|
|
}
|
|
}
|