Skill Level: Any
Not what you’re looking for? Check out all our available tutorials for mobile app messaging here.
Create your silent notification through the Acoustic Campaign user interface.
Select the Data type notification. If you use the Sample Data template, you get a notification that looks like
in your onMessage: method.
Tip: This is similar to creating a silent notification for iOS by using the Sample Data template. Other templates will look the way you define them.
Use the Push to Contact or Push to Device APIs.
You can create a notification with any content you specify; however, make sure not to have the alert element in the notification. The Sample Data template leaves out the alert element; this is why it triggers a silent push.
Every time a notification with no alert element is sent, no notification is displayed. In the app, you must override or modify the onMessage: method to take the action that you want when the silent notification is received.
Need more help? Check out all of our available tutorials for mobile app messaging here.