xmtp-ios
xmtp-ios copied to clipboard
Add more push server options
Introduction 📟
Purpose ℹ️
Scope 🔭
Add push server options by introducing XMTPPush.DeliveryMechanism and updating XMTPPush.register(token:) to delegate to XMTPPush.register(deliveryMechanism:) in XMTPPush.swift
Introduce DeliveryMechanism with apns(deviceToken:), firebase(deviceToken:), and custom(token:); add XMTPPush.register(deliveryMechanism:) that validates pushServer, builds Notifications_V1_RegisterInstallationRequest, and calls client.registerInstallation(request:); update XMTPPush.register(token:) to wrap as APNS; add non-UIKit stub that fatalErrors; map mechanisms via DeliveryMechanism.toProtobuf().
📍Where to Start
Start with XMTPPush.register(deliveryMechanism:) in XMTPPush.swift.
📊 Macroscope summarized 9a0cf9f. 1 file reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted. View details