Is there any way to receive data from server in Onesignal and then send that data to ionic cordova app using onesignal

I want to refresh my app data through push notification from one-signal.
So my question is how can i get the data from server in onesignal?
and then send that data from onesignal to my app through a notification and the data will be updated.