问题
I have an Angular 2+ app where I have an interface to send Push Notifications to users of an Ionic App. What I want to do is to use the Web interface to send programmatically notifications with Javascript. Has anyone done this before? Can anybody tell me how to do this? I would be really happy to see some code examples but a recommendation where to start and which API/SDK to use would be enough. I really do not want anyone to do this for me but some direction would really help me as I am new to Push Notifications from the Web.
Thank you.
回答1:
You can use Firebase to work with push notifications. There is a tutorial to implement it to you Ionic App. But to send push notification you will need to have a server backend.
来源:https://stackoverflow.com/questions/56258388/send-push-notifications-programmatically-javascript