You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have been going through an issue of Notifications are delivered but callbacks are not fired in flutter and after going through so many forums, I have figured out that it is a problem with Firebase SDK and Proxy field inside message Object.
proxy enum Setting to control when a notification may be proxied.
I could find proxy field in the above page. but If I try to add the same in my code it gives a following error.
Argument of type '{ notification: { title: any; body: any; }; data: { click_action: string; clickAction: any; type: any; relationType: any; relationID: any; relationType2: any; relationID2: any; }; tokens: any[]; android: { ...; }; }' is not assignable to parameter of type 'MulticastMessage'. The types of 'android.notification' are incompatible between these types. Type '{ proxy: string; }' has no properties in common with type 'AndroidNotification'.ts(2345)
Due to this I am not able to generate the build for my project and it is necessary to be added in our project as we rely on this solution and it works fine if we use this field.
I request you to please include proxy field sooner. I have found few feature requests for the same but could not figured out that when it could be pushed to production.
Thank you.
The text was updated successfully, but these errors were encountered:
Hello, I have been going through an issue of Notifications are delivered but callbacks are not fired in flutter and after going through so many forums, I have figured out that it is a problem with Firebase SDK and Proxy field inside message Object.
Reference URL:
https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#AndroidNotification
proxy enum Setting to control when a notification may be proxied.
I could find proxy field in the above page. but If I try to add the same in my code it gives a following error.
Argument of type '{ notification: { title: any; body: any; }; data: { click_action: string; clickAction: any; type: any; relationType: any; relationID: any; relationType2: any; relationID2: any; }; tokens: any[]; android: { ...; }; }' is not assignable to parameter of type 'MulticastMessage'. The types of 'android.notification' are incompatible between these types. Type '{ proxy: string; }' has no properties in common with type 'AndroidNotification'.ts(2345)
After checking messaging-api.d.ts inside lib folder of
https://www.npmjs.com/package/firebase-admin PACKAGE. I have found out that proxy field is missing.
Due to this I am not able to generate the build for my project and it is necessary to be added in our project as we rely on this solution and it works fine if we use this field.
I request you to please include proxy field sooner. I have found few feature requests for the same but could not figured out that when it could be pushed to production.
Thank you.
The text was updated successfully, but these errors were encountered: