Skill Level: Any
On iOS, there can be multiple sources of push. For instance, the Acoustic SDK may send push notifications from your marketing team, but another party might send pushes to devices when files are updated. Unlike Android, all these push sources ultimately use the same push token when they register. If the other push source integrates manually with the app, integration should be relatively straightforward. SDKs which integrate by method swizzling can be more problematic and aren't addressed here.
Not what youâ€™re looking for? Check out all our available tutorials for mobile app messaging here.
Create a new NotificationDelegate class in the main target (SwiftSample in the sample app):
Update the NotificationDelegate class
Update the NotificationDelegate class to pass control to other classes as appropriate when different (non-Acoustic) push messages are received.
Update your app delegate
Update your app delegate (SwiftSample.AppDelegate in the sample app) to make use of the NotificationDelegate class you just added by updating the UNUserNotificationCenter.current().delegate when the app finishes launching:
Need more help? Check out all of our available tutorials for mobile app messaging here.