Refresh Token Interceptor: Ktor | Retrofit | Apollo GraphQL

Key Points Introduction to Refresh Tokens Refresh tokens are like a backup plan for your app’s authentication. They let you get new access tokens when the old ones expire, keeping users logged in without needing to log in again. This is super handy for apps that need to stay connected, like social media or banking […]
Kotlin 2.1.20: The Superhero Upgrade for Android, KMP, and Server-Side Devs

Why Kotlin 2.1.20 Matters: A Quick Intro Before we get into the nitty-gritty, let’s set the stage. Kotlin’s been the cool kid on the block for a while now—concise, safe, and multiplatform, it’s the programming equivalent of a Swiss Army knife. With 2.1.20, JetBrains has polished it up even more, giving developers a faster, smarter, and more […]
How to enable auto start permission programmatically for customized android OS?

Mi, Xiaomi, Oppo, Vivo, Huawei, LeTV, Asus like smartphone manufacturers are using a customized android OS that looks like and works differently than the stock android OS. Those manufacturers use lots of security functionality. Like your background service will be stopped after screen lock, the device will go to doze mode, foreground service will not […]
Android Ignore Battery Optimization Programmatically: Keep Your App Awake!

Have you ever built an Android app that’s supposed to run like a marathon champ, only to find it napping halfway through the race? If you’ve been working with foreground services that need to hum along for a long time—say, chatting with a server or crunching some critical tasks—you’ve probably run into Android’s battery-saving antics. […]