i'm making a ionic app with ionic cloud push notifications.
Everything works well when the app is open, but i need to trigger some functions when the app receives a new notification even in the background, which it is not happening currently.
Plus, i want to send that notifications with content_available: 1, just to become invisible ones to the users, which leads into another problem, when the app is in background with this kind of notification, i don't have even the top menu alert to tap and open the app.
So, i want to know if it's possible to make a invisible push with content_available: 1 triggers a function inside my app while it's closed or asleep.
Thank you in advance.
You can use
cloud:push:notification
event to catch each notification received to your application while it open, close or sleep.sample code will describe the implementation. This link will also be helpful