I'm using FCM Push Notifications with AeroGear's UnifiedPush Server 1.2 for sending notification to my android application. I have created an application in firebase and I am using it with aerogear.
After building the app (with cordova) and everything my device was successfully shown in 'device' tab (I am using aerogear-cordova-push#3.0.1). But when I want to send a notification I am getting the next error:
Variant Test has failed: Error sending payload to FCM server: HTTP Status Code: 400(Error=DeprecatedEndpoint)
Did anyone encountered the same problem?
The notifications worked until now and I have created this new variant just for debugging purposes. I have another one configured for iOS and doesn't have any problems. Tell me if I should provide more details.
var pushConfig = {
pushServerURL: "http://aerogear.test.com/ag-push/",
android: {
"senderID": "32132",
"variantID": "fag3-3rf",
"variantSecret": "ff44-sdvs"
},
ios: {
variantID: "bgfsbs",
variantSecret: "fdgd"
},
categories: subscriptions
};