2.2.0
ketanshikharebsft
released this
03 Aug 08:35
·
200 commits
to master
since this release
What's new?
- Updated pod specs for core SDK to support iOS 9 and above versions.
- Updated pod specs for extension SDK to support iOS 10 and above versions
- Added support for extending the
customPushCategories
and overriding thecustomAuthorizationOptions
while registering for remote notifications
//Set custom push notification categories at the time of SDK initialization.
config.customCategories = getCustomeCategories();
//Set custom authorization options at the time of SDK intiialisation.
config.customAuthorizationOptions = [.alert, .badge, .sound, .providesAppNotificationSettings]
- Send broadcast notification on responding to the push notification permission pop up to know the user response.
NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: "BlueshiftPushAuthorizationStatusDidChangeNotification"), object: nil, queue: OperationQueue.current) { notification in
print("Push permission status : \(String(describing: notification.userInfo?["status"]))")
}
- Added method
getRegisteredForInAppScreenName
to get current registered in-app screen name
let registeredScreenName = BlueShift.sharedInstance()?.getRegisteredForInAppScreenName()
-
Automated the UNAuthorisation status change detection on app entering foreground using the observers
-
Implemented Blueshift Serial Queue for background request execution
-
Forced SDK initialization on the main thread to avoid main thread execution warnings
-
SDK code clean up and enhancements
- Reorganised the SDK initialization code
- Download font awesome file on SDK initialization
- Modified the get ManagedObjectModel Paths for core data
- Replaced hard-coded SDK versioning with framework bundle version
- Added new logs for debugging purpose
- Removed unused files
- Resolved Xcode Analysis issues and warnings