Manos Chorianopoulos

update documentation

......@@ -4,7 +4,7 @@
**Get started with SwiftWarplyFramework in just 5 minutes!**
**Version**: 2.3.0 | **Minimum iOS**: 17.0 | **Swift**: 5.0+
**Version**: 2.4.0 | **Minimum iOS**: 17.0 | **Swift**: 5.0+
---
......@@ -53,7 +53,7 @@ Choose your preferred installation method:
```
https://git.warp.ly/open-source/warply_sdk_framework.git
```
4. Select **Version**: `2.3.0` or **Up to Next Major**
4. Select **Version**: `2.4.0` or **Up to Next Major**
5. Click **Add Package**
6. Select **SwiftWarplyFramework** and click **Add Package**
......@@ -62,7 +62,7 @@ Add to your `Package.swift` dependencies:
```swift
dependencies: [
.package(url: "https://git.warp.ly/open-source/warply_sdk_framework.git", from: "2.3.0")
.package(url: "https://git.warp.ly/open-source/warply_sdk_framework.git", from: "2.4.0")
]
```
......@@ -89,7 +89,7 @@ platform :ios, '17.0'
target 'YourApp' do
use_frameworks!
pod 'SwiftWarplyFramework', :git => 'https://git@git.warp.ly/open-source/warply_sdk_framework.git', :tag => '2.3.0'
pod 'SwiftWarplyFramework', :git => 'https://git@git.warp.ly/open-source/warply_sdk_framework.git', :tag => '2.4.0'
end
```
......@@ -1790,6 +1790,34 @@ Start with the Quick Start guide and gradually adopt the advanced features as ne
## 📋 **Changelog**
### **Version 2.4.0** - *March 3, 2026*
#### **🆕 New Features**
- **CouponsetViewController Added**: New view controller for displaying detailed coupon set information. Accepts a `CouponSetItemModel` and integrates seamlessly into navigation stacks and coordinator patterns.
- **Push Notifications Implementation**: Full push notification support migrated from legacy ObjC `WLPushManager` to Swift, including:
- Device token management and server registration via `updateDeviceToken()`
- Warply notification detection using the `"_a"` key in push payloads
- Notification routing by app state (active/background/closed)
- Rich push presentation via `CampaignViewController` WebView (campaign URL built from `session_uuid`)
- Push analytics events (`NB_PushReceived` and `NB_PushAck`)
- Custom push handler protocol (`WarplyPushHandler`) for non-standard action codes
- Pending notification queue for cold-start handling (`handleLaunchOptions()`, `handlePendingNotification()`)
- Badge management via `resetBadge()`
- Comprehensive device info sending to server
- New `PushNotificationReceivedEvent` and `PushNotificationEngagedEvent` in EventDispatcher
- Convenience wrappers for `UNUserNotificationCenterDelegate` methods (host app forwards calls to SDK)
- **ProfileViewController Dynamic Coupons Data**: ProfileViewController now fetches and displays dynamic coupon data from the API, replacing static/placeholder content with real user coupons.
- **retrieveCoupon Functionality Added**: New `retrieveCoupon` method for redeeming/retrieving coupons from coupon sets programmatically.
#### **🔧 Improvements**
- Updated Push Notifications documentation section with complete AppDelegate setup guide
- Added `CouponsetViewController` to View Controller Integration examples and navigation patterns
#### **🚨 Breaking Changes**
- **None**: Full backward compatibility maintained
---
### **Version 2.3.0** - *June 30, 2025*
#### **🆕 New Features**
......