If I generate an access token with voice and chat grants, I can not build a chat client it returns "Request to EMS service has failed, unable to set FPA token". Access token with only chat grant works as expected. I've checked all Twilio service SID's, API keys etc..
Here example of my token generation method:
var grants = new HashSet<IGrant>
{
new VoiceGrant()
{
OutgoingApplicationSid = voiceSid,
PushCredentialSid = pushCreds
},
new ChatGrant()
{
ServiceSid = chatSid,
PushCredentialSid = pushCreds,
EndpointId = $"chatSample_{identity}"
},
};
var token = new Token(
accSid,
apiKey,
apiSecret,
identity,
grants: grants);
return token.ToJwt();