Firebase Notification(even after app gets killed)

Hii this guide will allow you to send notification in app with firebase so be ready to stop using onesignal(you can use if want).

Just follow the steps :-

Step 1 : -

  1. Resolve activity(ask permissions to the app if needed)
  2. ConfigureForeground (you can use if you want to run app in foreground and not in background actually its for non-cancleable notification that will apear you can edit it’s title , content etc.)

Step 2 (Important) :-

You need to call functions after creating function.

Special thanks to @Xoma for his great background task extension and guidance to create this app.

Aia :- FirebaseNotifications.aia

NOTE :- I AM USING 3.0 VERSION OF TASK EXTENSION BY XOMA

AND Set Foreground to true not false

image

19 Likes

@Bharat_Android_App_Develo Lots of Love :heart::heart::heart::heart::heart::heart::heart: I am very Much thanks full to you that you have made this guide

3 Likes

I was waiting for this only from last 2 hours :heart::heart::heart::heart:

2 Likes

I was too waiting from last one year. Please learn how the blocks are related to each other don’t copy paste plz

2 Likes

Hello, please help me
This is my RealtimeDB
image

How to get value from “waktu”?

2 Likes

@IKHSAN_NUR_RAHMAAN_1 Did you want value when data changed ?

2 Likes

@Bharat_Android_App_Develo Yes

Change project bucket to waktu

1 Like

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Please hide urls this can’t be put publically , did you know what is firebase url ?

1 Like

@Bharat_Android_App_Develo I’m little bit confused.


To better understand, how to get value from 1 and 2 send it to notification?
I mean i want to save value on tiny db and show on notification

Thankyou

I haven’t learn that yet give me some time to learn

3 Likes

OMG Did not even know this was possible thanks so much :heart:

1 Like

Apk not working

What is the error you got ?

1 Like

Not start and not doing anything.

Can you post aia here ?

1 Like

FirebaseDemo1.aia (957.2 KB)

1 Like

What is your Android Version and Manufacturer name?

Redmi not 7pro
Android 10