We released a new version of our iOS Smart App Agent.
Pyze Smart App Agent for iOS version 2.3.4
What’s new?
We added improved support for In-App Notifications. In-app notifications allow app publishers to reach out to app users when they use your app.
In-App Notifications are deeply integrated in Pyze Growth Intelligence and allow app publishers to reach out to users from manually from Event Sequences and Intelligence Explorer, and automatically based on workflows and campaigns from Growth Automation.
Read all about how to enable In-App Notifications in iOS


The SDK adds the following methods in The Pyze Class:
- +addBadge:
- +showUnreadInAppNotificationUI:withDelegate:
- +showInAppNotificationUI:
forDisplayMessages:
msgNavBarButtonsTextColor:
msgNavBarButtonsBgColor:
msgNavBarBgColor:
msgNavBarCounterTextColor:
withDelegate: - +countNewUnFetched:
- +getMessageHeadersForType:
withCompletionHandler: - +getMessageBodyWithCampaignID:
andMessageID:
withCompletionHandler:
We have added support for custom images, buttons and Universal links (introduced in iOS9 to complement deep links). Web Links (http://pyze.com) Universal links (http://MyAwesomeApp.com/universal) or deep links to your own app (myAwesomeApp://getPyzeToday) or other apps (twitter://user?screen_name=pyzeinc) are all supported.
Web, Universal and deep links to your own app and other apps are supported.
Read all about how to enable In-App Notifications in iOS
Sample code:
class ViewController {
override func viewDidLoad() {
super.viewDidLoad() Pyze.addBadge(self.showMessagesButton) //1
}
@IBAction func didTapShowMessage(sender: AnyObject) {
Pyze.showUnreadInAppNotificationUI(self, withDelegate: self) //2
}
func didUserClickedOnInAppMessageButtonWithID(buttonID: Int,
buttonTitle title: String, containingURLInfo urlInfo:
AnyObject, withDeepLinkStatus status: PyzeDeepLinkStatus) {
NSLog("Button Index: %d, Title: %@,
deep link %@", Int(buttonID), title!, urlInfo)
}
}
blog.pyze.com