I am creating a native app for my magento2 store, Want to create facility of Mobile notification for different module (default and custom), I have certificate for IOS that will be use regarding this.
How can I integrate this certificate and send push notification via rest api, And want the same for Android as well.
Best Answer
Below approach may help you:
Write the respective function in helper class.
After that you can use those helper functions from anywhere by injecting the helper class in constructor of the where you want to use those functions:
If your helper class object is $this->notificationHelper then you can call the functions following way: