Skip to content

7.1.1

Choose a tag to compare

@PushwooshCI PushwooshCI released this 15 Jun 18:20

New Features

  • Added Pushwoosh.configure.pushPrimer — a native, fully customizable soft opt-in primer shown before the iOS system push-permission prompt. A fluent builder offers a system-alert style or a custom sheet in three positions, each with its own default design — a bottom sheet, a top push-style banner (icon + title + subtitle), or a centered dialog; title, message and accept/decline buttons; a local image or remote imageURL (rendered as a circle on the center/bottom layouts); a solid backgroundColor or a soft multi-color backgroundGradient; title, message and per-button colors; sheet and button corner radius and button border color; state-aware behavior (shows when undetermined, silently suppresses when already authorized, routes to Settings when denied via fallbackToSettings); and an optional minInterval that caps how often the primer reappears. Call present or present { outcome in }.

    Pushwoosh.configure.pushPrimer
        .title("Stay in the loop")
        .message("Get notified about deals first")
        .acceptButton("Enable")
        .declineButton("Later")
        .present { outcome in }