Releases: blueshift-labs/Blueshift-iOS-SDK
2.0.0
In-app messaging is here! 🎉
1.0.2
- Fixed the crashing issue while calling a user events track.
- Code Cleanup.
1.0.1
- iOS 13 specific changes : Change the method of fetching the device token.
- Code Cleanup
1.0.0
- Change the payload key bsft_transactional_uuid instead of bsft_transaction_uuid
- Namespace Reachability to avoid duplicate symbol errors
- Advertising identifier(IDFA) fetching removed
0.4.2
- Change the acceptance reference of BlueShiftPushDelegate configuration during the initialization if the notification callback.
- BlueShiftPushDelegate is a separate class other than AppDelegate
0.4.1
Bug fixes
0.4.0
Xcode 10 issue fixed.
0.3.9
Memory leak issue fixed.
0.3.8
-
Carousel notification UI now supports title and subtitle.
-
To know users preference for the push notification, new NSNotification is created. Usage is given below:
To add observer to the notification after requesting the user for push notification:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveNotification:) name:[[[BlueShift sharedInstance] config] blueShiftNotificationName] object:nil];
Note: This should be executed only after initialising the Blueshift config in the app delegate.
To implement the notification, and then remove the observer:
-
(void) receiveNotification:(NSNotification *) notification {
NSDictionary *userInfo = notification.userInfo;
NSNumber *numObj = [userInfo objectForKey:[[[BlueShift sharedInstance] config] isEnabledPushNotificationKey]];
if ([numObj boolValue]){
printf("Permission given");
}else {
printf("Permission denied");
}
[[NSNotificationCenter defaultCenter] removeObserver:self name:[[[BlueShift sharedInstance] config] blueShiftNotificationName] object:nil];
}
Note: This notification is also triggered every app launch after the user is asked for permission and can be used to know the status of push notification permission status every app launch.
0.3.7
SDK Introducing UNUserNotificationCenter for handling iOS 10+ push notifications.