| |

OneSignal Push Notification Update (Draft)

OneSignal Push Update – Apptekz Mobile Apps v5.x, when released, will support Firebase and OneSignal Push Notifications to enable better push notification delivery and performance for Native Apps. This update will replace our current Native Push Notification technology.

In an effort to improve our platform and support the app store publishing requirements, we’ve built a new Push Notification system that will enable new functionality in the future, while satisfying the requirements of both iOS and Android publishing. PWA Push will be unaffected by this update.

This change will require republishing each app using the old Push Notification system as we migrate to our new Push v2 update that uses a separate configuration per app for both Firebase and OneSignal and we’ve updated individual Push capabilities for direct targeting.

In this article, we’ll show you how to configure and use your apps with the Push v2 feature.

How to configure Firebase / OneSignal Push Notifications

Prerequisites: You’ll need a Firebase account for Android & an Apple developer account for iOS

Add a New App to OneSignal

Open a OneSignal account and give it the same name as your Mobile App

Configure Google Android (FCM)

Now go to your Firebase console and if not done yet, create a new application

Or follow the OneSignal documentation

Disable the Google Analytics for now, you’ll be able to configure it later if you want to use it.

Configure a new Android app, click on the rounded android icon in the middle of the page

Paste your application package name from the App Builder, and your App Name, then next/skip all other steps

Go back to your Firebase console homepage, then click on the gear on the top left of the page,
then open the Cloud messaging tab

Click on the three dots beside API Cloud Messaging (old version) then activate the API

Go back to this page and reload, now you have access to both a server key and a sender id

Now that your application is created & configured, you can paste your keys in OneSignal

Save and continue, then select Cordova as the SDK, continue

Now just click done!

Now you can navigate to the page Keys & IDs that’s the keys you will have to copy inside Siberian.

While we have completed only Android steps so far, these same keys will work for both Android & iOS
However, we still have a few more steps to finish the configuration for iOS

Go to the Settings > API page of your Mobile App

Then paste your App ID and key

After that, you will be able to import older devices

Configuring iOS

Go to the platforms page & add Apple iOS

For more in depth and help to create a p12 key, please check the OneSignal documentation below


Upload your key, then save & continue

Same as for Android, select the cordova SDK, then next, you’re done!

Sending Push Notifications with Push v2

To send a new push, first add the push v2 feature to your application

Then fill a Title & Message, you can also schedule your application in the future

Note: The scheduling is timezone friendly, the message will be sent at the given time, depending on the user timezone, default delivery time of day if left blank is 9:00 AM

Hit Send message

The message history will be shown below, it can take a few seconds to display the correct Delivery status & rate (just reload the page)

Similar Posts