r/reactnative • u/Lunaticfrinnge • Oct 05 '26
Help I lost my biggest client because of a bug that wasn't even a bug
We build a B2B mobile app and our biggest client accounted for about 30% of our MRR and they cancelled today, they told me their team had been experiencing crashes on the inventory screen for weeks and it was happening specifically on samsung A series phones which is what most of their field staff use.
They never reported it and just assumed we knew and weren't fixing it and eventually decided we weren't reliable enough but by the time I found out the bug it took me 2 hours to fix but the client was already gone.
It was a rendering issue on a device I don't own and never tested on and if I had known about it even a week before I could've pushed a hotfix and they'd still be paying us.
there might be many other clients might be facing stuff like this and just not saying anything.
How do I catch bugs on devices my team doesn't physically have, I can't afford to lose another client like this.
62
u/otivplays Oct 05 '26
It clearly was a bug. You just haven't discovered it.
You need crash reports logged somewhere. That's the key. As another commenter said Sentry / bugsnag / posthog are all great options.
317
u/DRJT Expo Oct 05 '26
That’s on you OP, you should have observability and monitoring tools in place
If your customers have to report crashes & bugs to you before you see them, you’ve messed up
Look into platforms like PostHog and Datadog. Also App Store Connect & Google Play Console give you plenty of data
104
u/recycled_ideas Oct 05 '26
There are a number of testing services, but that's not your problem here.
You had a major client that has an overwhelming majority of their users on a specific device category AND YOU DIDN'T KNOW THAT OR TEST. That device would have cost you a few hundred bucks. How much did you lose?
On top of that, your major client had constant crashes and you had no reporting to tell you that.
They were right to drop you, you didn't do your job.
25
u/Xae0n Oct 05 '26
It's nice that you share it here for others to see and learn from it. Very nice of you.
21
u/manos2864 Oct 05 '26
You can use Bugsnag or sentry as your error monitoring and application performance management platform
9
u/jasperkennis Oct 05 '26
If this is true it's crazy. Client is going to make a lot of costs for having to find a new supplier. And they know that too. Are you sure there weren't other reasons for them to go that they just didn't want to tell you about?
9
u/Autonoma_at Oct 06 '26 edited Oct 06 '26
I love how many people are suggesting monitoring. While that’s absolutely important, I think something even more important is being overlooked: customer success.
In B2B, especially when a single customer can make up 30% of your revenue, customer success is king. You should have at least biweekly check-ins with key customers. That’s how you learn what’s missing, what isn’t working, and where they’re struggling.
Sure, this specific case could probably have been caught with proper monitoring. But we also see customers slowly fade away simply because they don’t know how to use the tool properly, don’t see the full value, or just gradually stop using it.
Monitoring tells you that something is going wrong. Talking to your customers tells you why.
And most importantly: keep going. Losing a customer like this hurts, especially when they represent such a big part of your revenue. But you’ll survive it, learn from it, and very likely come out stronger on the other side. 💪
8
u/KyeThePie Oct 05 '26
browserstack and a solid AT suite should catch majority of things
8
u/FunNo3751 Oct 05 '26
Fix the bug, offer them a discount or some free months . And get good monitoring in place, as others recommend. Reassure the client. Good luck. Hope they come back.
3
u/eadgas Oct 05 '26 edited Oct 05 '26
Right now I'm fixing a crash impacting around 10% of our users and no one reported yet. Firebase crashalytics does an excellent job finding those. Feel bad for you tought.
3
u/Revxrsal Oct 05 '26
Sentry is a must-have for any app you deploy to production. Some bugs I would have never dreamed of catching without it. Not a luxury. The free tier is decent enough for small user bases, and if you decide to upgrade then the investment is worth it IMO.
3
u/schorts9906 Oct 05 '26
https://firebase.google.com/products/crashlytics
5
u/daredeviloper Oct 05 '26
Sorry to hear OP. Congrats on getting clients which is more than most. Good luck moving forward. Definitely need error submission from customer side. Like a pop up or something. Or automatic monitoring.
2
u/gandharva-kr 20d ago
Sorry man. 30% of MRR walking out is ❤️🩹
At Gojek I owned driver app stability. Oppo phones kept killing our app in the background, which killed location, which meant drivers stopped getting matched to rides. No crash. Nothing on our dashboards. We found out when driver complaints spiked.
What got us to root cause was instrumenting those phones properly. Lifecycle events, memory consumption, onTrimMemory calls. Once we could see the OS squeezing the app, the fix was clear. We shipped a lighter mode for low end devices.
Lesson I took away: monitoring is a first class app feature.
What I'd do this week:
Get crash and ANR reporting in if you don't have it. Slice everything by device model and OS version. A Samsung A series cluster would have jumped out in a day.
Monitor user actions and app behaviour, not just crashes. Screen views, taps, lifecycle, memory warnings. Rendering bugs often don't crash. The screen just breaks and the user gives up.
Look at what your clients' teams actually carry. If their field staff are on A series, buy one or two. Cheap insurance against such incidents.
Alert on new spikes per device, so you hear about it before the client does.
Disclosure: I build Measure.sh because of problems like this. But any decent monitoring setup doing the above is good enough.
2
u/PrimaryFamous6139 Oct 05 '26
This is exactly why device coverage matters. You don’t need to own every phone though. I’d use crash reporting to see which devices are actually failing, then run important builds through a device farm like Firebase Test Lab. You can test specific Samsung models and Android versions on real devices without owning them. I’d also add a basic smoke-test suite to CI so these issues get caught before release.
2
u/DollieExloo Oct 05 '26
Do you already use firebase by any chance? If so start using crashlytics
2
u/rebaser69 Oct 05 '26
You might be trolling, right?
2
u/RepublicFlimsy Oct 05 '26
You need to use a tool that can notify you when crashes happen like Crashlytics, Sentry or a similar tool.
1
u/Ok-Listen-2162 8d ago
rough way to find out here . start with automatic crash reporting and make sure it actually works in ur release build. log handled errors too since not every broken screen crashes the app. then maybe test the inventory flow on the phone models ur clients use and add an easy way to report issues inside the app tho
1
u/CantaloupeCamper Oct 05 '26
I made a lot of clients upset last week because updated password policy and auth flows…. 🤷🏼♂️
1
u/LastHit_ Oct 05 '26
It's something I'm always scared of when using React Native. We do have proper logging, but sometimes uncommon issues still make it into production.
1
u/myBurnerAccount1000 Oct 05 '26
Sentry
1
u/XCastorsX Oct 05 '26
I use Crashlytics from Firebase in my apps, it's a great tool to fix problems like this where you don't own specific devices and keeps the full trace of the error. You can even see the live reports and it works for both iOS and Android.
https://firebase.google.com/products/crashlytics
1
u/Ellie10543 Oct 05 '26
Painful lesson, but the gap you describe is the real one: you found out from a cancellation instead of from a dashboard. Crash reporting with device and OS model attached (Sentry, Crashlytics, whatever you like) would have shown a pile of crashes on one screen from Samsung A-series within a day. Set an alert on any new crash group so it pings you, rather than something you have to remember to check. Then, since your client's field staff use cheap Samsungs, buy one or two used ones and keep them on your desk. A cloud device farm helps, but a real mid-range phone shows you the jank too. Last thing: ask your biggest clients for a quick call every month. Some people never report problems.
1
u/nonHypnotic-dev Oct 05 '26
It is not about catching bugs. It is obvious that they don't want to work with you anymore. You need to find this reason.
1
u/Emotional-Lime-4436 Oct 05 '26
Honestly I would not try to physically own every device. That is going to be imppossible for you.
I will start with the crash monitoring so the app can tell you when something breaks. Firsbase crashlytics can show the device model, android version, app version and main where the crash happen. Set up alerts for new crashes.
For those devices you dont have use testing service and focus on the models your customer actually use.
Bigger issue is that customer dont report problems they work uround them until they decided the product is not reliable or the team working on it is not reliable.
So i would combine crash monitorign with regular check ins after releases. you dont need a complicated system you just need to know what things are wrong and fix them in time
1
u/zorkidreams Oct 05 '26
Do you have a way to receive support from clients? Did you make it clear to the client? You cannot prevent every bug they are gonna happen, don’t even try to solve that problem.
I’m astonished that the client didn’t speak up… I mean all the clients I work with are a constant feed of support tickets.
1
u/konbit Oct 05 '26
Build SaaS without proper monitoring is guaranteeing failure.
Since it's your biggest client, and if it's possible for you to offer this, I'd suggest trying to mend the relationship. Be super transparent about what went wrong and why, and delineate the steps you're taking so it never happens again. Take full responsibility and offer something to sweeten the deal and make it hard for them to turn down, like a year of free service or something. If they're already out the door you have nothing to lose, but showing them that their success is your main priority will hopefully help them step back to trust.
Whether or not this saves the contract, build in monitoring, there's tons of good suggestions in this thread. Make sure to use a product that can send you alerts to your smartphone so you know there's an issue before your clients do and let them know it's being worked on, this is HUGE for confidence building. Issues happen, any business will understand that, but if you show that you don't even know about it and expect the client to report, then it will destroy confidence.
1
u/vlal97 Oct 05 '26
There are simulators to have access to lots of devices but honestly you should have figured out what phones and devices they use and optimized for that and even got a physical one. And probably an iPhone which the managers and owners likely have. The simulators can still not render things like an actual phone.
1
u/Aytewun Oct 05 '26
Logging is necessary. Also sometimes when certain actions fail but maybe the app doesn’t fully crash. It can be helpful to show some sort of ui where the user can report the issue to you.
Test coverage can also help expose some potential issues
1
u/Adventurous_Tipper Oct 05 '26
Sentry is extremely affordable for small teams and has saved my life/job/sanity many of times.
1
u/No_Lawyer1947 Oct 05 '26
I agree with DRJT. It's a pain you learn once and never should forget. You have to have REALLY good error handling. And obviously end to end tests set up. Set up your logs to report to a service like Sentry or use some open source alternative if you'd like a self hosted free version. Do not expect to place work onto your customers, they're ideally there for requirements gathering but bugs, and app breaking stuff should be your problem to figure out when, where, how, and why it's happening.
1
u/Fidodo Oct 05 '26
Live and learn. Your client was right, you should have known about it without them telling you via crash telemetry. You should have been alerted about a spike in crashes on those devices, known that meant a bunch of disgruntled users, and fixed it right away.
Crash telemetry will tell you what device, region and page etc that the crash happened on. You should get that set up asap.
1
u/yknx4 Oct 05 '26
Why you don’t have error tracking?!!!
1
u/Classic_Chemical_237 Oct 05 '26
So many tools to help you to catch crashes. There is no excuse. And if you write Android app, be ready to have a lot of devices. That’s part of the game
1
u/considerfi Oct 06 '26
Id also suggest send your long term clients personal messages and ask if there's anything they have issues with. It's worth keeping them happy.
1
u/XilentExcision Oct 06 '26
This seems like a failure of basic functional requirements. I think “what device will this run on?” should have been asked earlier and by you. Non-technical people, obviously, do not know what they don’t know - they trust you to facilitate these type of requirements.
As others mentioned, keep your head up and congrats on your business, but also in the long term success of your business it’s definitely worthy to consider what all you could have done to catch this earlier.
1
u/azizsafudin Oct 06 '26
Amateur hour… how you even got a single paying client is amazes me.
1
u/Top_Medicine_732 Oct 06 '26
Use sentry
1
u/Varun77777 Oct 06 '26
Use posthog, new relic, crashlytics and other services for analytics and log monitoring.
Invest in services like browser stack and automation testing on a variety of devices.
1
u/lungmoo Oct 06 '26
My first idea is: your client's new "significant other" works in a rival company. Something like that happened to me long time ago !
1
u/Brandon_Beesman Oct 06 '26
Is a lesson.🤘
1
u/Triple-B-564 Oct 08 '26
If you don't have crash reporting with alerts yet, that's the cheap fix. A dashboard alone won't cut it because nobody actually opens it.
What worked for me:
1
u/piotrlewandowski Oct 08 '26
Your client experienced “If you think it's expensive to hire a professional, wait until you hire an amateur” - hard way for them to learn they needed to hire professional
1
u/sehrgut Oct 09 '26
I'm sorry, but the fact that you're asking this question means you have no business at ALL in a mobile space. You don't know that device clouds and real device test automation services exist. You don't know that in-app reporting exists. What exactly DO you know?
1
u/[deleted] Oct 09 '26
Narrator: Depsite saying that the bug wasn't a bug, it was, in fact, a bug.
1
u/Simpledevx Oct 05 '26
Una pena, quizás con un seguimiento más activo de la satisfacción del cliente ese tipo de problemas se comenten y puedas darle solución antes de llegar a eso. Igualmente no es normal que el cliente se comporte así
0
u/NecessaryAlgae3211 Oct 05 '26
jaane wale ko koi rok nahi shakta... just move on now
-2
u/aDamnCommunist Oct 05 '26
Samsung is the biggest bane to the React Native developer I swear to God. There are more edge cases on those phones that any developer could reasonably find.
I really hate this for you. What a shit client to never report a huge bug.
I guess next time ask if they use a particular device more than others. Still a super shitty situation.
-1
u/Basic-Smile3795 Oct 05 '26
Wow, I haven’t even started doing any development with react native as I am mostly a web developer. After this post, I may not start lol
1
u/[deleted] 9d ago
[removed] — view removed comment