The language association of a push token is unnecessary. Each token is related to a user which already has a language. If a user changes the language in the user profile there will be a mismatch between the user language and the token language.

Proposed solution: remove the 'language' column from table 'push_notifications_tokens'. Join the table 'users' instead.

Comments

sammuell created an issue.