JavaScript and Firebase වැඩ්ඩො එන්න

kasdbg

Well-known member
  • Oct 18, 2011
    1,956
    1
    1,157
    113
    Mofos එකේ
    Boys. මට මගෙ JavaScript webapp එකේ button එකක් click කරපු ගමන් firebase cloud messaging වල notification එකක් generate කරගන්න ඕනෙ. :dull:
    Method එකක් දන්න පින්වතෙක් ඉන්නවනම් help කරන විදිහ කියන්න. :sorry:
     

    kasdbg

    Well-known member
  • Oct 18, 2011
    1,956
    1
    1,157
    113
    Mofos එකේ
    There is no such single method. You need a token for the receiver..first integrate it in the app you want, then generate that token.

    After that you can use fiebase js sdk to send messages. easy work..
    Did the same. Successfully generated the token and sent notification using that token. But nothing happned. Followed all the steps which are mentioned on fcm documentation.
    https://firebase.google.com/docs/cloud-messaging/js/client
     

    kolavari

    Well-known member
  • Aug 11, 2012
    33,746
    1
    25,656
    113
    කැළෑ පොජ්ජේ
    Where did you integrate? Browser? App?

    Use the fiirebase console and send a test message through that. If it it works, then the problem is in your sending part. If it doesnt work, then you have a problem with your token or service account
     

    thilina.rp

    Well-known member
  • Dec 10, 2014
    5,653
    769
    113
    Did the same. Successfully generated the token and sent notification using that token. But nothing happned. Followed all the steps which are mentioned on fcm documentation.
    https://firebase.google.com/docs/cloud-messaging/js/client
    stack eke dapan firebase advocate kenek awilla help ekak dei. matath uya wage seen ekak wuna document eke nathi ekak advocate kenek awilla thamayi help ekak dunne.

    Doug Stevenson innawa godak welawata stack eke