I found strange issue, with used res.content.decode(Result.self) access_token was not decoded (at the same time JSON body with access_token received) and in total it was impossible to send FCM message.
So, I replaced this call to decode access_token using JSON decoder and everything works well.
Hey,
I found strange issue, with used
res.content.decode(Result.self)
access_token was not decoded (at the same time JSON body with access_token received) and in total it was impossible to send FCM message.So, I replaced this call to decode access_token using JSON decoder and everything works well.