Closed MileyHollenberg closed 1 month ago
I found a few problems with this issue:
Ah never mind, I found the reason, the Firebase function created its own subscription and the one I was looking at was the one I made myself. For some reason the Firebase created one didn't show up in my list of subscriptions for a while. Just found it and deleted my manually created one. Now everything is working as expected including the messages being acknowledged properly :) (also the subscription created by Firebase was a Push rather than Pull setup which is also why the messages weren't getting re-played even though they were in the queue)
[REQUIRED] Version info
node: V20.11.1
firebase-functions: ^5.0.1
firebase-tools: 13.8.0
firebase-admin: ^12.0.1
[REQUIRED] Test case
Simply create a function with the following code
Create a pub-sub topic with these settings
And link it to an app in the Google Play Dashboard
[REQUIRED] Expected behavior
When the function finishes it should acknowledge the event in PubSub
[REQUIRED] Actual behavior
PubSub sees the message as un-acknowledged even though it doesn't seem to replay it afterwards (set to replay after 10 seconds up to 600 seconds delay)
Were you able to successfully deploy your functions?
Yes, the function gets called and the data gets stored in Firestore but the message simply isn't being acknowledged. I've looked if there is a function I need to call in order to acknowledge the message but everything points towards a successful function call automatically acknowledging the message.