[push/opt-in-prompts] Implement push notifications client integration
Build the full client half of docs/api/push-notifications-integration-guide.md: OS permission + APNs device-token registration and pipeline wiring, profile notifications/biometric-login toggles on the Ver Perfil screen reflecting server truth, order-tracking opt-in fallback prompt, profile-cache refresh on every mutation, a Notification Service Extension for rich/image push, the Push Notifications capability, targeting-attributes sync, campaign open tracking, and tap-to-order deep linking with foreground notification display.
This commit is contained in:
@@ -10,6 +10,10 @@ struct AppState {
|
||||
var homeFilters = HomeFiltersState()
|
||||
var activeModal: AppModal? = nil
|
||||
var shouldNavigateToOrders: Bool = false
|
||||
/// Set when a push tap (§6 of the push notifications guide) targets a
|
||||
/// specific order — consumed once by `OrdersView`, which routes to it via
|
||||
/// `OrderEntryDestinationView` and clears it.
|
||||
var pendingOrderDeepLink: OrderRouteContext? = nil
|
||||
}
|
||||
|
||||
enum FeatureFlagValue: Codable, Equatable {
|
||||
@@ -94,6 +98,8 @@ struct ProfileState {
|
||||
var phone: String = ""
|
||||
var profilePicture: String = ""
|
||||
var cpf: String = ""
|
||||
var notificationsEnabled: Bool = false
|
||||
var faceIdEnabled: Bool = false
|
||||
}
|
||||
|
||||
struct AddressState {
|
||||
|
||||
Reference in New Issue
Block a user