Custom Command
Simply put, by definition, Custom Commands are push notifications that are not visible.
They act as a kind of trigger to execute anything you want on the customer's device.
How it Works
When sending a simple text notification, the EZ Push SDKs by default handle displaying on your users' apps. You can't change the data structure that is transferred to the recipient. It is predefined and consists of title, body, and deeplink.
In Custom Commands, you can define the payload by yourself. This allows you to transfer any data you want to the applications.
Additionally to the payload, a command is needed that tells the application what data is incoming.
In your app's code, you can register a specific handler for each Custom Command.
Use Cases for Custom Commands
You can use Custom Commands for anything you want. For better understanding, here are some example use cases for Custom Commands:
- Displaying the received data in a custom view on a device that is running.
- Telling the apps to delete data from its internal storage to log the users out and force relogins.
- Toggling a feature by changing the app's internal storage.
It is a powerful feature and up to you what you are going to do with it. But obviously, you need to think about your Custom Commands before shipping the apps to your users because you need to handle the Commands yourself.
For more info see: