Open aselsis-mehmet-hayti opened 2 years ago
I found a few problems with this issue:
Hi Lahiru, I think it's better to keep the backend logic simple to only support keyword "high" in English. Is there anything we can introduce in Admin SDK to support "hıgh" in case it's Turkish?
Steps to reproduce:
Running the application on a computer with turkish language. In the turkish langaue there exists an 'I' or 'ı' and 'İ' or 'i'. When encoding to json the enum AndroidConfig.Priority.HIGH is encoded to hıgh, because the lowercase of I in turkish is ı.
Relevant Code:
Error:
com.google.api.client.http.HttpResponseException: 400 Bad Request POST https://fcm.googleapis.com/v1/projects/sermobil-app/messages:send { "error": { "code": 400, "message": "Invalid value at 'message.android.priority' (type.googleapis.com/google.firebase.fcm.v1.AndroidConfig.AndroidMessagePriority), \"hıgh\"", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "field": "message.android.priority", "description": "Invalid value at 'message.android.priority' (type.googleapis.com/google.firebase.fcm.v1.AndroidConfig.AndroidMessagePriority), \"hıgh\"" } ] } ] } }