Keeping relevant with your customers is easy with push notifications, sending instant push notifications to all the customers that have your Apps in their devices is a great way to promote and keep informed.
To set up notifications, you need 3 accounts:
1.One.signal
2. Fire base for android apps
3. Apple Developer for iOS
Settings > Notification Settings > The first information you must have is > One Signal User Auth
Configure One Signal
1. Create your One Signal Account
Go to this link https://onesignal.com/ click on Sign Up and start the following process.
We enter our One Signal account > go to our profile > select Account & API Keys
We copy the code of user Auth Key we copy it in One Signal User Auth
Android
You require the base Fire account, since you must create three applications in this account.
Note: Firebase must create an application per product, since the duplicate keys cannot be used.
When creating a new app, a notification will appear, and you will choose the android option.
In your Firebase project, go to the project settings and service accounts tab to download your private key in JSON format.
Can follow this guide directly from One Signal https://documentation.onesignal.com/docs/generate-firebase-credentials?mkt_tok=ODI4LURSRS0wNzYAAAGO2_hqWHlyIyT9Hb71WTGHYhxIoyX77D7GvZ7MfMW-c087ZUoLdVvYQlXMWOZ0szZ6ictGyqlq44f4vkRVu2E7hPY0J4I2yiv2A_Q5AWIK_pwz#2-generate-a-private-key-json-file?utm_source=mkt&utm_medium=email_mkto&utm_campaign=mkt-email_mkto-121003-FCMann-em1&utm_content=FCMann-em1
Add the JSON file in the next section
After putting the keys >we go to Ionic > and give save and continue
Copy and paste the code that has been generated and paste the ID in the type of app you created, each application generates a key.
iOS
Select the app settings in this case iOS
On this tutorial, you will learn more about it
https://documentation.onesignal.com/docs/generate-an-ios-push-certificate
Once you have the Productions files, you will get the Push Notifications activated on the App you selected.
The file given to you in the previous guide is uploaded,, and the same step is performed to create the ionic code.
After selecting the app that you want to send the notification, you can see on the website the general information about the user that received the notification on this app.
To send notifications need to click on the "Message" option.
Prepare Push Notification
On this screen, you can see all the notification that you are also sent, you can create a new notification, only need to click on"New Push"button.
The first thing you should select is the option"Send to Subscribed Users." This option is to send the push notification that you are creating to all users to this app.
In this field, you can write the title and the message about the push notification that you are sending.
Customize notifications
You can change some content like the notification sounds, images, or videos.
Schedule
.After configuring the push notification, you need to select the configuration to deliver this notification. Once you complete this information, you only need to click on"Confirm"to continue with the process and send the notification that you are creating.
Confirm Message
21. Verify the information is correct. Then click on"Send Message."to send the notification.
Track Notification
You can monitor the notifications delivered to your app.