Google Auth Library
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
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
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:

Thanks for the support. It works well.

I have downloaded these many jdk files included in the application.cfc to fetch oauth token and send Firebase messaging push notifications.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.