• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Google Auth Library

Explorer ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Hi  All,

 

Could you please suggest an option to get an Access token from Firebase Cloud Messaging to send push notifications?  Is anyone know anything about integrating Firebase cloud messaging in Coldfusion 2021 server.

Thank you

Views

346

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Sep 26, 2024 Sep 26, 2024

Thanks for the support. It works well.

jibinanto40792294_0-1727372343723.png

I have downloaded these many jdk files included in the application.cfc to fetch oauth token and send Firebase messaging push notifications.

Votes

Translate

Translate
Community Expert ,
Sep 19, 2024 Sep 19, 2024

Copy link to clipboard

Copied

Messaging applications, such as Firebase Cloud Messaging, usually provide information on how they can be implemented in various environments. So, you should get the most useful implementation suggestions from the Firebase Cloud Messaging website.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2024 Sep 19, 2024

Copy link to clipboard

Copied

As luck would have it, someone has just posted a question on Firebase Cloud Messaging. Follow the link and make contact with the poster unless, of course, you posted that, too.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 19, 2024 Sep 19, 2024

Copy link to clipboard

Copied

Thanks for the reply, I will check this link try to get FCM token and let you know the update.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2024 Sep 20, 2024

Copy link to clipboard

Copied

I suggested in that other thread to download the Firebase 9.3 Jar file from Maven.org, to place it in ColdFusion's lib directory and then to restart ColdFusion.

Does that solve your problem?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 21, 2024 Sep 21, 2024

Copy link to clipboard

Copied

You had two problems.

 

The first has apparently been solved. In the other thread you were able to dump the object "com.google.firebase.FirebaseApp" by downloading and using the firebase-admin-9.3.0 jar file 

 

The second problem is that you are getting "java.lang.ClassNotFoundException: com.google.api.core.ApiFuture". My suggestion here is that you should do the following:

(1) stop ColdFusion;

(2) move the file api-common-2.36.0.jar from .\configs\fcm\java\ to ColdFusion's lib directory;

(3) restart ColdFusion. 

 

To test my own suggestion, I downloaded api-common-2.36.0.jar from Maven.org and put it in the lib directory of my ColdFusion installation. I then ran the following code:

 

<cfscript>
ApiFutureObj=createobject("java","com.google.api.core.ApiFuture");	
writedump(ApiFutureObj);
</cfscript>

 

The object was dumped as expected:

BKBK_0-1726942467622.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 26, 2024 Sep 26, 2024

Copy link to clipboard

Copied

LATEST

Thanks for the support. It works well.

jibinanto40792294_0-1727372343723.png

I have downloaded these many jdk files included in the application.cfc to fetch oauth token and send Firebase messaging push notifications.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation