Chances are your problem already has a solution. Have a quick look to the Push Notifications for WordPress FAQs. If your question appears in the FAQs, we will not send a reply to your request.
Please note: we answer only to questions about the plugin. Code-level questions about your client apps are outside the scope of this support.