I shipped subscriptions in Butter Skin , an AI skincare coach that analyzes your skin on-device with TensorFlow Lite, builds a personalized routine, and tracks progress in a visual diary. The app runs Flutter and Dart with Riverpod on the front end and Firebase Auth, Firestore, and Cloud Functions on the back end, so the architecture was already in place. The hard part was not the UI. It was the billing.
Every platform wants you to do subscriptions its own way: StoreKit 2 on iOS, the Google Play Billing Library on Android, receipts verified on your own server, renewal states reconciled through server notifications, edge cases like grace periods, billing retries, and refunds handled consistently. Writing all of that by hand means building and maintaining a mini billing backend.β¦