Closed ChaitanyaYupp closed 2 months ago
@ChaitanyaYupp can you please confirm if you have provided specifically the Firebase Cloud Messaging API Admin
role?
The error on the dashboard, when clicked on, should take you to the documentation to read more about it and troubleshoot. Additionally here is a page for the commonly faced errors and faqs
Yes @Anush-Shand , I have verified that the Firebase Cloud Messaging API Admin role has been provided.
@ChaitanyaYupp Please raise a support ticket via this link. Clevertap can then help verify your integration and take any further steps, if required
Closing this issue due to inactivity. Support ticket can be raised using this link
Summary:
I encountered an issue after integrating the FCM server key into CleverTap with the required roles (Firebase Admin SDK Administrator or Firebase Cloud Messaging Sender) and migration from legacy APIs to HTTP v1. Preview and Test feature is failing with the error message:
Android: Warning: Failed to send out test notification(s): FCM_LEGACY_API_SERVICE_DEPRECATED (1)
To Reproduce Steps to reproduce the behavior:
Generated the FCM server key and assigned the necessary roles: Firebase Admin SDK Administrator or Firebase Cloud Messaging Sender. Integrated the server key and service account JSON file into CleverTap via the dashboard. Tested push notifications by specifying the version (notifications work as expected). Attempted to use the Preview and Test feature in CleverTap and received the error:
Expected behavior
The Preview and Test notifications should be sent using the FCM HTTP v1 API, as the FCM legacy API has been deprecated. I expect test notifications to be delivered without errors.
Environment
Steps Taken to Troubleshoot:
Verified that the service account JSON file contains the correct roles (Firebase Admin SDK Administrator or Firebase Cloud Messaging Sender). Regenerated the JSON file and re-uploaded it to CleverTap. Checked Firebase Console and verified that notifications work using the HTTP v1 API directly. Regular push notifications work when specifying the version, but Preview and Test consistently fails with the legacy API deprecation warning.
Is there additional configuration required to switch CleverTap to use the FCM HTTP v1 API for test notifications?