Send Push Notifications Programmatically Javascript - push-notification

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.

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.

Related

Modify push notifications using capacitor plugin

Is it possible to modify incoming push messages using #capacitor/push-notifications? I‘m sending messages using Firebase Cloud Messaging to my Android and iOS apps, which are encrypted by my backend and should be decrypted by the app. To achieve this, I must modify the messages shown in the notification centers after receiving them.
I didn‘t find any documentation on this, so I would appreciate any hint into achieving this. If this is not supported, is there any other solution I could use?
You can send a data notification (which is not automatically displayed by Android) and then use #capacitor/local-notifications to show the modified notification.

Need some interface that generate fake device token to test push notification

I am working on push notification module at server side that will send push notification to mobile device.
As I am backend developer only, I need some online portal or similar kind of service that generate fake device token and I as a developer can use that device token and send notification on it. So that portal will display me notification text and other payload info.
I try to search things online but no luck. I have also asked to many mobile developer and my colleagues for this. They don't have any idea for this.
I am not sure that this kind of service is available yet or not.
So thought, will try to ask genius people of this forum.
Thanks in advance.

Sending a notification crashes app

I have a react-native app, and I thoroughly followed all the steps mentioned here to add Firebase to your app, and Add the SDK.
However, when I try to send my first notification using the Notification composer, my application simply crashes with the message "pushNotif has stopped working". This happenes regardless of background or foreground state.
Has anyone ever experienced this? does anyone have any idea what could be wrong?
You should try react-native-fcm to implement FCM in react-native, then you'll be able to handle notifications in your react-native javascript code.

Twilio Chat push notifications

We are using the twilio-chat#1.0.4 JS SDK in our react-native app.
We're using react-native-push-notification#3.0.0 to handle the notifications.
The pushes are enabled and can see them coming through from twilio.
But I can't figure out how to turn on alerts.
I can (and currently do) issue a local notification when the app is in the background but we'd like to see the alert even if the app is closed.
How can we configure the push notifications to include an alert.
I had similar needs but the only difference in my case am using twilio native chat wrapper instead of the JS sdk.
To enable have push notifications working I ended up forking https://github.com/zo0r/react-native-push-notification and customizing it to support twilio push notifications which have custom payload than what you might be used to.
Check https://github.com/zo0r/react-native-push-notification/compare/master...Kabangi:master for the changes I made you might get some ideas from it.
Twilio developer evangelist here.
Twilio Chat JS 1.1.1 was recently released and actually contains methods for dealing with push notifications.
Also, did you follow the instructions for React Native's PushNotificationIOS that explain how to setup your iOS application for receiving push notifications?

push notification without mobile app

I have a website. Currently I have been sending sms during some transactions as notification.
I want to use push notification instead of sms. But I don't have any mobile app.
How can I send push notifications without a app. Are there any way to do it?
Yes, Spontit enables you to send push notifications to all devices - desktop, iOS, Android, etc. You can do so for free and without your own app.
You can check out their API here.
As far as I know, there is no way to do this without developing an app for each platform (Android/iOS). You could also get away with something like a browser plugin. Essentially what your asking for is what your doing, an SMS or an Email. That is as close as you can get w/o an app. You can make a notification system on a website, but there is no way to push it to the user when they are not on your site w/o them downloading something like a plugin. :D
you can do this with https://pushed.co
they allow users to download their app and you push to the users with their app without needing to have your own mobile app

Resources