One-Signal Notification style data store

Hi,
I’m developing an app where I send notifications to users using OneSignal, and it’s working perfectly.

My question is: is there any way to store the notifications I send to users in the app’s local storage, so that when users open the app, they can view past notifications? Also, if there is a Clear option, users should be able to delete the stored notifications.

Please guide me on how to achieve this. Thank you.

This seems like a very basic question for someone who has a considerable number of applications and extensions developed, like this one.

Implementing block with Native components is not understandable.

If app is closed and i send any notification how it’ll be stored locally?

If you can help on this help me, otherwise if you’re taunting, get a life bro :slight_smile:

Hi dear,

I’ll start by saying I’m not an expert in OneSignal :grin:, but if there’s no method to retrieve past notifications, the only way is to use iToo so you can receive notifications even when the app is closed, and then add them to the ones already stored in TinyDB.

PS
Please guys, don’t argue :confused:.
There are extension developers who aren’t experts in block-based programming and still create complex extensions, just as there are Kodular experts who don’t know how to develop extensions.
It may seem so, but they’re not exactly the same thing.

1 Like

Thanks mate! No one is experts I’m still learning things.
I’ll try this approach.
If you find anything else on this please help me out.

Meanwhile I’m waiting reply from an experts who claim it’s basic things :grin:

Correct bro, that’s why you and @Ibrahim_Jamar are my top priority in block based things.
I can develop Extensions because i have to in java but I’m not really expert in Blocking :smiling_face_with_tear:

Btw Big shoutout to both of you guys. And thanks for helping especially you bro @RaYzZz :clap:

2 Likes

Due to my experiment there’s no current method to save the notification, you still can’t do this, but why? With the built-in One-signal component there’s no way to retrieve the notification when the notification is coming in.

How about this, lets use your extension for sending notification. I have seen something interesting there.

Then we will create a simple database for storing our notification, Google sheets is enough for this function, so when we send notification to user’s we will store notification to our database, then we will add a notification layout/screen to display all received notification. The problem is that we can’t delete the notification layout value’s because we don’t know which user view or not viewed the notification, maybe you can implement something to handle the view function.

That what i have tried so far and you can give it a try than giving up

Exactly no one is expert than other, thats we have the community where we get hands

1 Like

Correct bro, let me do something and I’ll update here. Thanks again.

It could be done by having the notification generated from our own database, saved there, and then sent to OneSignal for delivery.
Then the user would interact with the database to retrieve the notification history.

Or they could simply be saved locally with TinyDB, but obviously if the device is changed or the app is uninstalled, the data would be lost.

1 Like

Seem we we’re referring to same thing just different directions :hugs::hugs::hugs:

Are you referring to create another sever?

1 Like

The idea is to create the notification on Firebase or other databases (so it gets saved) >> which then triggers a function (that call OneSignal API) >> an then sends the request to OneSignal to generate the notification.

:grin: :heart_hands:

2 Likes

Hey guys! :waving_hand:

Good news! I’ve just released a new paid extension that works exactly as my dream “in-app Notification Center” :heart_eyes: It fetches OneSignal notification history and shows it in a beautiful customizable card UI inside your app – with persistent dismissal (cleared ones stay hidden forever) and title filtering.

Please check it out here and let me know your honest feedback: :link: https://community.kodular.io/t/paid-notification-ui-fetch-from-onesignal-notifviewer-pro/310872?u=securebugs

Thank you so much! :raising_hands:

Special shoutout to my bros @RaYzZz and @Ibrahim_Jamar – it’s completely free for you both, just DM me if you want the license! :heart:

1 Like