Skip to content

7.0.14

Choose a tag to compare

@PushwooshCI PushwooshCI released this 29 Dec 12:17
· 30 commits to main since this release

New Features

  • Added new Pushwoosh.media API for Rich Media presentation configuration:
    // Set presentation style
    Pushwoosh.media.setRichMediaPresentationStyle(.modal)
    
    // Configure modal window position and animations
    Pushwoosh.media.modalRichMedia.configure(
        with: .PWModalWindowPositionBottom,
        present: .PWAnimationPresentFromBottom,
        dismiss: .PWAnimationDismissDown
    )
    
    // Set swipe directions to dismiss
    Pushwoosh.media.modalRichMedia.setDismissSwipeDirections([
        NSNumber(value: DismissSwipeDirection.PWSwipeDismissDown.rawValue)
    ])
    
    // Set haptic feedback
    Pushwoosh.media.modalRichMedia.setHapticFeedbackType(.PWHapticFeedbackMedium)
    
    // Set corner radius
    Pushwoosh.media.modalRichMedia.setCornerType(.PWCornerTypeTopLeft, withRadius: 16)
    
    // Auto-close after interval
    Pushwoosh.media.modalRichMedia.close(after: 10)

Improvements

  • Removed required In-App messages logic