Wezter
Wezter3y ago

Mobile app with tRPC

What's the suggested way of working with tRPC when it comes to mobile apps? How do you ensure that your CI doesn't let you push a new backend to production if it breaks the mobile app in production?
2 Replies
Alex / KATT 🐱
Answered some qs about this in an email yday
Wezter
WezterOP3y ago
Hmm I think I'll have to think on a way to resolve this before we start utilising it for any of our mobile projects 🤔 Would you guys say this is a good way to handle it? - Send a x-app-version header with all requests from the mobile app. - If there are any breaking changes in the backend a new version of the API that has breaking changes is created. - The backend will return the old version of the endpoint unless the x-app-version is a version where the fixes have been applied in the mobile app. - Once the new mobile app is live in production either the feature which is affected would be feature toggled or the whole app would be killswitched telling the users to update the app.

Did you find this page helpful?