Android Firebase Push Notification Device to Device - Android Studio Push Notification Firebase

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 273

  • @CodingCafe
    @CodingCafe  6 лет назад +22

    Link to index . js :
    drive.google.com/open?id=1JpERR4uUQSR7AuLqDD3czBEHg6Ogm7GF

    • @tarangmishra7391
      @tarangmishra7391 5 лет назад +2

      i deploying database, functions
      Error: Unexpected rules format
      .... Sir this error is coming

    • @Siyam_vlog00
      @Siyam_vlog00 5 лет назад

      @Tariq Aziz everything is fine but when i build and deploy it to device it crashes

    • @VishalVerma-ub2ue
      @VishalVerma-ub2ue 5 лет назад

      Thanks but i have one question from you ,
      Why you used '$' in reference.
      Reference doesn't contain "," , "." , "_" , "$" etc.

    • @sherifmohamed5143
      @sherifmohamed5143 5 лет назад +1

      when i deploy function in cmd , error is show
      Error: Functions did not deploy properly.
      plz help

    • @masminclothing5476
      @masminclothing5476 5 лет назад

      thank you sir. ur best .

  • @kashifsheikh4159
    @kashifsheikh4159 4 года назад +3

    Finally done
    Though to get pop up
    Keep following things in mind
    1. You should be logged in and not logged out
    2. Either use virtual devices for both account or use Android phones for both account
    3. Make sure that when you logged in, then press home button to make sure that app runs only in background mode

    • @akhiladapa345
      @akhiladapa345 4 года назад

      Hi, I don't think 2nd point is mandatory.
      It works for me when I use one virtual device and one mobile phone.

  • @jakabitv
    @jakabitv 4 года назад +8

    Okay, for anyone who has troubles getting notifications, I think I found the issue.
    Go to your Firebase Database and check whether all your users have a device_token.
    If not, either delete the user or log off once and then log in again with that user, to create a new device token.
    Then, once all the users have a device_token, you need to launch 2 device emulators, one running the app in the background (that is the one who will receive the notification) and one sending the request inside the app.
    The notification can only be received if the app is running in the background!
    I hope this helps!

  • @youthcompassionvision4645
    @youthcompassionvision4645 3 года назад +2

    Thanks for this video, it really helped me!!

  • @are4raza
    @are4raza 5 лет назад +3

    Thanks best tutorial I have seen so far on the device to device notifications. Thanks for the help again

  • @dlerosman6183
    @dlerosman6183 5 лет назад +2

    You are the best teacher

  • @nikhilpawar7876
    @nikhilpawar7876 5 лет назад +1

    Love you bro. You are my god of android programming. These series means a lot to me. i didn't knew single line of android studio but now I know. just because of you.. May Allah bless you with all success

  • @makazad8620
    @makazad8620 4 года назад +1

    Alhamdulillah, it's working fine. Thank you brother. You are grate. May Allah bless you.

    • @CodingCafe
      @CodingCafe  4 года назад

      Ameen... Insha'Allah.... Thank you

    • @ritikeshchoube2984
      @ritikeshchoube2984 4 года назад

      @@CodingCafe sir this is showing it is paid how we use this plz tell sir

  • @rashikarathnayaka7309
    @rashikarathnayaka7309 4 года назад +2

    Thank you, sir. It worked....!

    • @AllRounder-km3lh
      @AllRounder-km3lh 4 года назад

      I am not getting notification
      I am using androidx

    • @rashikarathnayaka7309
      @rashikarathnayaka7309 4 года назад

      @@AllRounder-km3lh Yeah, I used androidX too. Did you check it correctly ...? I meant that we need to send a friend request after minimizing app on other virtual device on other mobile you use.

    • @kashifsheikh4159
      @kashifsheikh4159 4 года назад

      @@AllRounder-km3lh Finally done
      Though to get pop up
      Keep following things in mind
      1. You should be logged in and not logged out
      2. Either use virtual devices for both account or use Android phones for both account
      3. Make sure that when you logged in, then press home button to make sure that app runs only in background mode

  • @Mimilon1000
    @Mimilon1000 5 лет назад +2

    it's full working !!!! YOu is the best !!!!! Thank you so much !!!!

    • @CodingCafe
      @CodingCafe  5 лет назад +1

      thanks

    • @mirzahammad1823
      @mirzahammad1823 5 лет назад +1

      Everything is fine but i can't receive notifications, anybody solved it?

    • @prasadprasad6801
      @prasadprasad6801 4 года назад

      @@mirzahammad1823 s I am also

    • @AllRounder-km3lh
      @AllRounder-km3lh 4 года назад

      @@prasadprasad6801
      I also. Please tell me the solution if u got

  • @SukhoiSubs
    @SukhoiSubs 4 года назад

    if it worked for my teacher, thanks!

  • @hanifdesigner
    @hanifdesigner 6 лет назад +1

    You are like a boss thanks alot

    • @CodingCafe
      @CodingCafe  6 лет назад

      welcome

    • @kennedyfrancis5875
      @kennedyfrancis5875 5 лет назад

      @@CodingCafe I have Problems with Firebase CLI Login
      No matter how many times I try I'm getting error which authentication through cli
      I tried firebase login
      firebase login --reauth
      firebase login --no-localhost
      But nothing worked
      I even uninstalled all the nose js n npm firebase tool everthing but nothing working
      I have latest version of all the sw which to install plzzzzxx help I'm doing this from 3 days n didn't get any answer in Google
      Is it prob with my sys or acc
      Only once I think it came n then went off
      I'm doing mychat n don't no what to do help me

  • @swapnananda6114
    @swapnananda6114 6 лет назад +2

    Please Also make a tutorial on the notifications on getting new messages....

  • @taqaddusshafi8752
    @taqaddusshafi8752 6 лет назад +1

    Nice work bro keep it doing love u

  • @swapnananda6114
    @swapnananda6114 6 лет назад

    Please continue this playlist .... We want more features...

  • @kevingava9280
    @kevingava9280 5 лет назад

    Wow you are awesome ... thanks, it works

  • @abcdefj7144
    @abcdefj7144 6 лет назад +1

    The best channel I saw

  • @banditsumo4381
    @banditsumo4381 4 года назад +1

    Very Nice

  • @harshilbhatt5424
    @harshilbhatt5424 5 лет назад

    Keep Going .!

  • @Sena-xt5wb
    @Sena-xt5wb 3 года назад +1

    Google Cloud ask me to creating a shipping account. Is it paid?

  • @noviantiartikasari1688
    @noviantiartikasari1688 5 лет назад +1

    hello sir thanks for video. hmm how to push notification for send data from our firebase ? like value 5.and will send 5 to other device. thanks

  • @kashifsheikh4159
    @kashifsheikh4159 4 года назад +1

    Update
    So I was not getting notification and I soon realized that you have to be logged in from both account,(please mention this next time)
    Then I was not getting notification and then I saw that you have both virtual devices so I should have have account running on both android devices or both virtual (please mention that next time )
    Anyway, now logs are created but still notification are not shown
    So is any more thing we need to take care of like being logged in from both account and running on same kind of devices (both on visual or both on phone)

    • @AmanAgrawalBCE
      @AmanAgrawalBCE 4 года назад

      this is for background noti for forward noti you to write few more lines of code inside the studio

  • @casaurabhkhatri8545
    @casaurabhkhatri8545 5 лет назад +1

    you saved a life

  • @kchcreation7720
    @kchcreation7720 6 лет назад +1

    Chat notification .. Functionality..add the..next tutorial sir..

  • @zahidulislam9812
    @zahidulislam9812 4 года назад +1

    all the console status is ok but i cannot get notification in my device .please help me

  • @suneetkumar3964
    @suneetkumar3964 4 года назад

    I am getting two error:-
    1. Device Token is generated when I login using email id but not when using mobile no. Therefore no notification is triggered when login using mobile number.
    2. Two notifications are generated for a single action.
    Thanks for such a wonderful tutorial.

  • @kingsleydrah562
    @kingsleydrah562 4 года назад +1

    If you think you are too sure of the javascript codes that he made us to implement and yet the notification is not successful, kindly copy the one he pasted in the link...and you will be good to go. I have successfully implemented mine through this process.

  • @TidelxD
    @TidelxD 3 года назад +1

    billing accoint not found on deployiong :'( help me !

  • @anacondacodinghub2503
    @anacondacodinghub2503 6 лет назад +1

    Hello...sir...
    chat history delate Option...
    all select and one by one select delate...
    plz sir make a video...

  • @meghajain7637
    @meghajain7637 4 года назад +1

    I'm getting firebase login error in command prompt. It gives error:- An unexpected error has occurred.

    • @abinasbehera8752
      @abinasbehera8752 4 года назад

      After tools installation in windows cmd, search for node cmd. At here type firebase login then it will take to FirebaseCLI...

  • @amarjaiswar4340
    @amarjaiswar4340 5 лет назад +6

    hello sir, everything is fine but still not getting notification plz help..

    • @mugishaserge4119
      @mugishaserge4119 5 лет назад +3

      how did you you solve this?

    • @rajvinderkaur3099
      @rajvinderkaur3099 5 лет назад

      Have you found the solution? I'm facing the same issue.

    • @rajvinderkaur3099
      @rajvinderkaur3099 5 лет назад

      @@mugishaserge4119 Have you found the solution?

    • @farid64481
      @farid64481 5 лет назад

      check your child name

    • @AllRounder-km3lh
      @AllRounder-km3lh 4 года назад

      @@farid64481
      Bro please explained in detail
      I didn't understand what u said
      Please tell me the solution

  • @iknow6282
    @iknow6282 6 лет назад

    Sirji please upload regularly tutorial in WhatsApp topic

  • @meetsonawane9308
    @meetsonawane9308 4 года назад +1

    how to do this on mac??
    please reply

  • @akhiladapa345
    @akhiladapa345 4 года назад

    Hi, Thanks for the video.
    I just wanted to know if push notifications could be enabled without using node and (cmd) firebase. Can't we access firebase directly from Android studio like we have done before and implement notifications ?

    • @naveengupta6878
      @naveengupta6878 4 года назад

      I;m not sure but I think there are plugins for that.

  • @castrombithi4135
    @castrombithi4135 5 лет назад +2

    i deploying database, functions
    Error: Unexpected rules format

  • @Techno75
    @Techno75 4 месяца назад

    Are cloud functions free?

  • @muhammadarsalan9684
    @muhammadarsalan9684 5 лет назад +1

    sir i have error in logs i-e TypeError :cannot read property 'receiver_user_id' of undefined at exports.sendNotification.......

  • @VoraRavi1234
    @VoraRavi1234 5 лет назад

    Please tell us how and where sound and vibration feature add ?

  • @tanmayjoshi2706
    @tanmayjoshi2706 4 года назад

    Is it both need to be log in at same time or if one logged in after some time, then he won't receive request

  • @yourcorner5436
    @yourcorner5436 5 лет назад

    Your index file is in js type but mine is in JavaScript type so what should I do?

  • @alantwiz4
    @alantwiz4 4 года назад

    Why i keep getting the error below, how should i define the @device_Token?Please any help.
    ReferenceError: device_Token is not defined
    at exports.sendNotification.functions.database.ref.onWrite (/srv/index.js:75:76)
    at cloudFunction (/srv/node_modules/firebase-functions/lib/cloud-functions.js:131:23)
    at /worker/worker.js:825:24
    at
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

  • @teconicatheladderofsuccess8680
    @teconicatheladderofsuccess8680 5 лет назад +1

    perfect working

    • @mirzahammad1823
      @mirzahammad1823 5 лет назад

      Everything is fine but i can't receive notifications, anybody solved it?

  • @GauravAdhav
    @GauravAdhav 5 лет назад +1

    How to send notification using api

  • @muhammadaown3996
    @muhammadaown3996 5 лет назад +1

    where are to setting sendnotification function.
    i mean how the system will know that now it has to send the notication

  • @shadowthegermanshepherd9839
    @shadowthegermanshepherd9839 4 года назад

    it is showing me that node 8 is deprecated and not sending notification to another device..what should i do?

  • @_maverick.
    @_maverick. 4 года назад

    the name of the sign (````` ```) is `backtick`

  • @jiteshchoudhary6602
    @jiteshchoudhary6602 5 лет назад +2

    i have error sir please help
    Error: functions predeploy error: Command terminated with non-zero exit code1

  • @user-oh6kb3fu6e
    @user-oh6kb3fu6e 6 лет назад

    Hello! In whatsapp you can write to your phone contacts, if they have an application installed. Can you make the same functionality? I would be very happy to see it!

  • @lavumferdugo3183
    @lavumferdugo3183 5 лет назад +1

    hello sir how can one send a notification to all users in the group

  • @salamalkabi898
    @salamalkabi898 4 года назад +3

    Hi, npm install -g firebase-tools -this command giving me the error, can anyone plz help?

    • @vijethaj6078
      @vijethaj6078 4 года назад

      same prob ! did yu solve it ?

    • @AmanAgrawalBCE
      @AmanAgrawalBCE 4 года назад

      @@vijethaj6078 open any folder and inside that folder open the cmd and type the command without -g the command will not give error and will work only in that directory

  • @sam-ri-dha
    @sam-ri-dha 4 года назад

    Why use node instead of android notifications sir??

  • @zomjeen9116
    @zomjeen9116 6 лет назад

    I can not take file Functions have helped.

  • @arundhatichoudhury8755
    @arundhatichoudhury8755 5 лет назад +2

    Error: Registration token(s) provided to sendToDevice() must be a non-empty string or a non-empty array. This is showing.

    • @ismansantoso9207
      @ismansantoso9207 5 лет назад

      this is happen because your device_token root not exist. make sure you re login your app to update device_token root.

    • @tanmayjoshi2706
      @tanmayjoshi2706 4 года назад

      @@ismansantoso9207 to me no errors are showing
      It's successful build
      But no notification

    • @naveengupta6878
      @naveengupta6878 4 года назад

      @@tanmayjoshi2706 can you see your deployed file in firebase FUNCTIONS ? did you check LOGS ?

  • @amirishaque67
    @amirishaque67 4 года назад

    How to call different notification message from different functions

  • @HarshPatel-ky5vk
    @HarshPatel-ky5vk 3 года назад

    while deply project in cmd it gives error of billing account of firebase. what i have to do?

  • @yourcorner5436
    @yourcorner5436 5 лет назад

    And my default location is us Central but I'm in India so any problems? About this thing?

  • @samirdanial9346
    @samirdanial9346 4 года назад

    name of this character is {`} is backtick character

  • @postgraguate7674
    @postgraguate7674 5 лет назад

    Instead of receiver_id I want to send to all register users? What can i do?

  • @pawankhatri1787
    @pawankhatri1787 5 лет назад +2

    hi sir i am get error..plz help me
    ===Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions

    • @CodingCafe
      @CodingCafe  5 лет назад

      that's not an error.

    • @kevinjason1170
      @kevinjason1170 5 лет назад

      @@CodingCafe how do u deal with this since it made the app not showing the notification

    • @miqi449
      @miqi449 4 года назад

      It will show notification eventually, it's just the emulator is super slow to pick it up for the first time

  • @khokanuzzamankhokan668
    @khokanuzzamankhokan668 6 лет назад +1

    do you add audio call chat or video chat feature?

  • @akagrawal85
    @akagrawal85 5 лет назад

    with out notification channel...how you send notification to anyone??

  • @TheFascinatingFact
    @TheFascinatingFact 6 лет назад +1

    I am getting an error while checking node version: node --version is not recognized as an internal and external command, operable program or batch file

    • @CodingCafe
      @CodingCafe  6 лет назад +1

      are you using Windows Operating System in your PC or laptop. Make sure you did exactly the same which i did in video tutorial.

    • @TheFascinatingFact
      @TheFascinatingFact 6 лет назад

      yes I m using window in laptop. And I have done everything same. but still I have error. My command prompt is : C:\users\CW>

    • @aqeebhj5467
      @aqeebhj5467 6 лет назад

      Reinstall nodejs

    • @TheFascinatingFact
      @TheFascinatingFact 6 лет назад

      Hi I m getting an error in firebase function and notification is not sending:
      Error: Registration token(s) provided to sendToDevice() must be a non-empty string or a non-empty array.
      at FirebaseMessagingError.Error (native)
      at FirebaseMessagingError.FirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils/error.js:39:28)
      at FirebaseMessagingError.PrefixedFirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils/error.js:85:28)
      at new FirebaseMessagingError (/user_code/node_modules/firebase-admin/lib/utils/error.js:241:16)
      at Messaging.validateRegistrationTokensType (/user_code/node_modules/firebase-admin/lib/messaging/messaging.js:872:19)
      at Messaging.sendToDevice (/user_code/node_modules/firebase-admin/lib/messaging/messaging.js:493:14)
      at DeviceToken.then.result (/user_code/index.js:41:28)
      at process._tickDomainCallback (internal/process/next_tick.js:135:7)

  • @md.shiponshekh5465
    @md.shiponshekh5465 4 года назад

    Please....help..
    functions: Upload Error: Server Error. Client network socket disconnected before secure TLS connection was established

  • @tanojsai8636
    @tanojsai8636 4 года назад +1

    not deploying it is asking for update the plan for firebase

    • @dr.abhisheks9316
      @dr.abhisheks9316 3 года назад

      yes it is asking to pay money.. whether you have done that??

    • @tanojsai8636
      @tanojsai8636 3 года назад

      @@dr.abhisheks9316 no

    • @dr.abhisheks9316
      @dr.abhisheks9316 3 года назад

      @@tanojsai8636 Thanks for the reply.. I am now to trying to set up payment method.. I think payment is very less , 0.73 paisa (indian rupee) for one transaction, but now the problem is that google is now not accepting Indian debit cards rather they want credit cards, which I dont have

  • @badmanrko2386
    @badmanrko2386 5 лет назад +2

    I cannot login to firebase using cmd. It says "Error: An unexpected error has occurred."

    • @rohitsoni4398
      @rohitsoni4398 4 года назад

      hey you solve this errror?

    • @msanirudh9213
      @msanirudh9213 4 года назад

      Please help ...
      Have u solved this problem ??

  • @asisroy5418
    @asisroy5418 4 года назад +1

    Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
    why is this showing in command Prompt ...somebody help me

    • @footballanalysischannel9866
      @footballanalysischannel9866 4 года назад +1

      You cannot proceed without that billing plan. Follow the URL from the command prompt and change your plan from spark to pay-as-you-go. You will be required to set the billing info e.t.c, and after completing, you will wait for like 10 mins, and now the command firebase deploy shall work fine. (Hope this helps)

    • @narharephysicsclasses9111
      @narharephysicsclasses9111 4 года назад

      @@footballanalysischannel9866 How we can solve it. please explain .....Thanks in advance

    • @mukilan2815
      @mukilan2815 3 года назад

      @@narharephysicsclasses9111 you need to give ur card details to firebase

  • @thannaing9447
    @thannaing9447 6 лет назад +1

    Sir......firebase deploy also complted....
    There is not error also Firebase function.....
    But it say....
    Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions.... &
    app notification also not appear sir...

    • @thannaing9447
      @thannaing9447 6 лет назад +1

      Sir...now i got it ....
      I forget to minimize the app...
      thanks a lot sir......

    • @CodingCafe
      @CodingCafe  6 лет назад

      you are welcome. Than Naing

    • @dr.abhisheks9316
      @dr.abhisheks9316 3 года назад

      @@thannaing9447 By minimize what you mean??

  • @drrashahafezomran9432
    @drrashahafezomran9432 4 года назад

    deploying database, functions
    Error: Unexpected rules format

  • @amirishaque67
    @amirishaque67 4 года назад

    AOA bro i am amir can you please help me that how can i call this function in my api to send notification

  • @pranavreddy2146
    @pranavreddy2146 4 года назад

    I am using linux operating system, how to download and install? Can you help me?

  • @waqasahmed8660
    @waqasahmed8660 5 лет назад

    No files matching the pattern "." were found. in cmd, i cant deploy to functions in firebase

  • @InPic
    @InPic 4 года назад

    node js 8 is depricated now how to migrate it to js 10

  • @tanmayjoshi2706
    @tanmayjoshi2706 4 года назад

    It does not show errors
    But does not show log as well
    And not notification

  • @omerbey4510
    @omerbey4510 6 лет назад +4

    Hi👋. I am planning a big project which I want to upload to the Playstore. Since I'm only 14 years old and have only been programming correctly for 2 years, I wanted to ask you for help. if you want to help me we could talk about the exact details via instagram.Thanks

  • @rjwhatsapp828
    @rjwhatsapp828 5 лет назад

    im getting ''' ReferenceError: receiver_user_id is not defined
    at exports.sendNotification.functions.database.ref.onWrite (/user_code/index.js:13:54)
    at cloudFunctionNewSignature (/user_code/node_modules/firebase-functions/lib/cloud-functions.js:105:23) ''' error please help

  • @shaanindia3729
    @shaanindia3729 4 года назад

    sir
    deploy completed but functions Dashboard not upload file

  • @ongchutocchien3178
    @ongchutocchien3178 6 лет назад +1

    Hello Sir, I complete your tutorial but nothing happens. And in function log on firebase has: A notification has been deleted : notification_id xxx..

    • @kashifsheikh4159
      @kashifsheikh4159 4 года назад

      WFinally done
      Though to get pop up
      Keep following things in mind
      1. You should be logged in and not logged out
      2. Either use virtual devices for both account or use Android phones for both account
      3. Make sure that when you logged in, then press home button to make sure that app runs only in background mode

  • @dhilipkumar1412
    @dhilipkumar1412 5 лет назад +1

    In firebase console there is no error.but yet there is no notification received in my phone. Anyone help me

    • @kindredinocencio1637
      @kindredinocencio1637 5 лет назад

      same here

    • @kindredinocencio1637
      @kindredinocencio1637 5 лет назад

      in my case i created a FirebaseMessagingService inside that create a NotificationManager to show the notification

    • @mirzahammad1823
      @mirzahammad1823 5 лет назад

      I have done with FCM dependency and Everything is fine but i can't receive notifications, anybody solved it?

  • @shubhamsangale890
    @shubhamsangale890 5 лет назад

    Sir, getting an error :-
    Developer warning for package "example.com.mypackage" failed to post notifcations on channel "null" see log for more details

  • @adonismelencion
    @adonismelencion 4 года назад

    2020 FIREBASE FUNCTIONS UPDATE Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan.

    • @tarunreddy3488
      @tarunreddy3488 4 года назад

      did you find any solution for this?,
      if you did please share it bro.

    • @subhamsubhamayasatpathy186
      @subhamsubhamayasatpathy186 4 года назад

      Same error

    • @md.rezowanurrahmanrobin2051
      @md.rezowanurrahmanrobin2051 4 года назад

      Facing the same error...........

    • @mdahsanulhaqueshantanur2760
      @mdahsanulhaqueshantanur2760 4 года назад

      @@md.rezowanurrahmanrobin2051 same problem. have you have any solution???

    • @naveengupta6878
      @naveengupta6878 4 года назад +1

      @@mdahsanulhaqueshantanur2760 here is what you:
      Go to the Notification FOLDER you created on your desktop and then navigate to functions/package.json ::This is the file you will be editing. open the file in your text editor, you'd see
      a part of your code like this:
      "engines": {
      "node": "10"
      },
      change 10 to 8
      -save the file and deploy Again using "firebase deploy" command. it should work.
      make sure to see if it is added in FUNCTIONS on your firebase console and check the logs to see if it is working.
      this will work till MARCH 2021. then you will HAVE to upgrade.

  • @manojpatil7736
    @manojpatil7736 5 лет назад

    Why installing node.js?

  • @aqeebhj2406
    @aqeebhj2406 6 лет назад

    firebase login is shows firebase cli signin is failed in browser

  • @calmdown1990
    @calmdown1990 4 года назад

    dear how to apply this on mac

  • @wibiaditama2555
    @wibiaditama2555 4 года назад

    Can someone tell me why i'm not getting any notification?

  • @learnwitharslan1049
    @learnwitharslan1049 4 года назад

    why we code in node .js ??? can you explain please... is there any way to code in java for notificaion?????????

    • @shafiq824
      @shafiq824 4 года назад +1

      u will learn new skill. its precious

  • @anacondacodinghub2503
    @anacondacodinghub2503 6 лет назад +1

    hello..sir.
    Group create...good function...
    but not privacy ..Any Person Create Group any person ...
    using this group...
    plz sir ..
    include Admin group function...

    • @gororipper4742
      @gororipper4742 6 лет назад +1

      I have done this already ,just add the currentUserID UID to the child of when creating the group and use this function to check if you are the admin or not to delete the group.
      currentUserID = mAuth.getCurrentUser().getUid();
      GroupOwner = FirebaseDatabase.getInstance().getReference().child("Groups").child(currentGroupName).child("groupOwner");
      public boolean onOptionsItemSelected(MenuItem item) {
      super.onOptionsItemSelected(item);
      if (item.getItemId() == R.id.delete_created_group) {
      GroupOwner.addValueEventListener(new ValueEventListener() {
      @Override
      public void onDataChange(DataSnapshot dataSnapshot) {
      if(dataSnapshot.exists()){
      String GroupOwner = dataSnapshot.getValue().toString();
      if(currentUserID.equals(GroupOwner)){
      GroupNameRef.removeValue();
      Toast.makeText(GroupChatActivity.this, "Group Owner - Group Deleted", Toast.LENGTH_LONG).show();
      finish();
      } else {
      Toast.makeText(GroupChatActivity.this, "You are not the group owner
      Group not deleted!", Toast.LENGTH_LONG).show();
      }
      } else {
      }
      }
      @Override
      public void onCancelled(DatabaseError databaseError) {
      }
      });
      }return true;
      }

    • @dd4you
      @dd4you 5 лет назад +1

      thanks bro

    • @dd4you
      @dd4you 5 лет назад

      @@gororipper4742 please provide complete Java code of this page

  • @stutijain6573
    @stutijain6573 5 лет назад

    login successfull nahi ho rahe google se login karna pe local host 9005 error show kar kr rahe hai how to solve it?? help plzzzzz

  • @shiwanthaviraj8471
    @shiwanthaviraj8471 5 лет назад

    Anyone can help to fix this to receive notifications when app is running (not only when runs in background )..thnaks

  • @riadmahmud1621
    @riadmahmud1621 4 года назад

    Error: Server Error. Client network socket disconnected before secure TLS connection was established

  • @iknow6282
    @iknow6282 5 лет назад

    sir ji jo otp aata hai vo application ke name se kese aaye

  • @asadmukhtar1
    @asadmukhtar1 5 лет назад

    Where is the Status Videos ?

  • @rizvankhatri6454
    @rizvankhatri6454 5 лет назад

    An UnExpected Error occure when initializing firebase on 5:56
    Please can any one have its solution ?

  • @dhilipkumar1412
    @dhilipkumar1412 5 лет назад

    ERROR: Admin . database.ref is not a function at exports.sendNotification.functions.database .ref.onwrite
    Please anyone help me🙏🙏

  • @aqeebhj2406
    @aqeebhj2406 6 лет назад

    firebase login is not working????? plz need help

  • @bewarabihari
    @bewarabihari 5 лет назад

    hello sir,
    i got an error that
    functions predeploy error: Command terminated with non-zero exit code4294963238
    how to resolve please reply as soon as possible

  • @asifmahmud4651
    @asifmahmud4651 6 лет назад

    Please finish the CAB app sir.

  • @kyubikami1581
    @kyubikami1581 4 года назад

    hi sir
    I get the error C: \ Users \ kelvi> cd / Users / kelvi / Desktop / Notification
    The system cannot find the path specified.
    I don't know how to fix it, please help me

    • @kyubikami1581
      @kyubikami1581 4 года назад

      i fix error thanks sir the good video learning code android studio

  • @fireproject2674
    @fireproject2674 4 года назад

    Notification does not view.

  • @intesar_taieb
    @intesar_taieb 5 лет назад +1

    i can't login to firebase in cmd why? should i get proxy for that ?
    the url that redirect me to lacalhost doesn't work

    • @rupaprajapati6129
      @rupaprajapati6129 5 лет назад

      Which type error is coming after login

    • @intesar_taieb
      @intesar_taieb 5 лет назад +1

      @@rupaprajapati6129 this one "an unexpected error has occurred"
      it doesn't take me to the link,
      I tried copying the link then paste it into the browser , then it gave me CLI authentications , I press ok , and when I reach to localhost it didnt work
      I try login without localhost also didnt work

    • @AshwaniKumar-hj9oh
      @AshwaniKumar-hj9oh 5 лет назад

      hey, have you get any solution for this?? please let us know

    • @intesar_taieb
      @intesar_taieb 5 лет назад

      @@AshwaniKumar-hj9oh you should delete your email from database, then sign in again

    • @AshwaniKumar-hj9oh
      @AshwaniKumar-hj9oh 5 лет назад

      @@intesar_taieb hey thanks for your reply but your answer is not clear. could you pls let me know from which database i should remove my email, I am getting the error in command prompt .
      Waiting for authentication...
      Error: An unexpected error has occurred.

  • @abcdefj7144
    @abcdefj7144 6 лет назад +1

    Please add fees during the conversation