Mobile Dev

Questions about iOS, Android development, SDKs, and mobile apps.

Mobile DevHandling Stripe Fees in Flutter with Unknown Card Country

Learn how to calculate Stripe processing fees in Flutter when card country is unknown to ensure merchants receive exactly £10 while customers pay total amount including variable fees.

4 answers 1 view
Mobile DevSwiftUI ScrollView ZStack Background Ignores Safe Area

Learn how to make SwiftUI ScrollView ZStack background extend edge-to-edge ignoring safe area while VStack content respects it and scrolls seamlessly. Fix common iOS safe area bugs with code examples.

8 answers 3 views
Mobile DevFix Kotlin Unit Error Metadata 2.1.0 vs Compiler 1.9.0 in Android Studio

Resolve 'kotlin.Unit' incompatible version error in Kotlin Android Studio after adding Firebase Cloud Messaging Java service. Upgrade Kotlin to 2.1.20, align Gradle, AGP, Java 17 for firebase messaging compatibility.

3 answers 1 view
Mobile DevOptimize Jetpack Compose ExoPlayer PlayerControls Performance

Fix unresponsiveness in custom Jetpack Compose PlayerControls with ExoPlayer. Reduce recompositions from state updates, optimize pointerInput gestures, cache Canvas drawing for smooth playback and custom seekbars.

4 answers 1 view
Mobile DevLaunch Android Apps and Send Intents with ADB Shell

Step-by-step guide to starting Android applications and sending intents using ADB tools like adb shell am start. Covers setup, basic launches, data extras, troubleshooting for developers and testers.

5 answers 1 view
Mobile DevAndroid Gradle Build Error: Fix META-INF/LICENSE Without Breaking LeakCanary

Resolve Android Gradle build errors with duplicate META-INF/LICENSE files using merge instead of exclude. Preserve LeakCanary functionality while fixing build conflicts.

4 answers 3 views
Mobile DevFix Xcode 6 Beta 4 Unknown Class Interface Builder Error

Resolve Xcode 6 Beta 4 crash: 'Unknown class in Interface Builder file' despite correct Storyboard links. Reset Module in Identity Inspector, check targets, and prevent issues for smooth iOS app launches.

1 answer 2 views
Mobile DevFix Android WebView AppBarLayout Flicker on Scroll

Eliminate screen flicker when hiding AppBarLayout/SearchBar in Android WebView during scroll. Use NestedScrollView wrapper or NestedScrollWebView library for smooth Chrome/Opera-like behavior with CoordinatorLayout. Full code updates included.

1 answer 2 views
Mobile DevFix npm ERESOLVE Could Not Resolve in React Navigation

Resolve npm error eresolve could not resolve in React Native after React Navigation updates for Google's 16kb rule. Upgrade to 7.x, install peer deps like reanimated, handle breaking changes, and test stability without app crashes.

1 answer 2 views
Mobile DevStripe Partial Refunds for Split Payments in Flutter

Learn how to handle Stripe partial refunds for incomplete split payments with time limits in Flutter apps. Use PaymentIntents, flutter_stripe, cron jobs, webhooks, and Stripe refund API for auto-refunds on timeouts.

1 answer 1 view
Mobile DevOpen WebView URL in Safari iOS Using JavaScript?

Discover why JavaScript can't open URLs from iOS WebView in Safari due to security limits. Learn native WKNavigationDelegate solutions, code examples, and best practices for external links in WKWebView.

1 answer 1 view
Mobile DevCreate SMS/MMS Messenger App for Offline Group Chat

Learn how to build an SMS/MMS messenger app like iMessage for offline communication with group messaging. Use Android SmsManager API, cloud gateways like Twilio, self-hosted solutions, or mesh networks for reliable messaging without internet.

1 answer 1 view
Mobile DevFix Android MediaStore Inconsistent Path Capitalization

Android MediaStore returns inconsistent casing like 'WhatsApp' vs 'whatsapp' for files in the same folder due to case-insensitive filesystems and scan snapshots. Normalize with canonical paths, LIKE queries, and RELATIVE_PATH for reliable WhatsApp media access.

1 answer 2 views
Mobile DevUITextField Text Change Detection in iOS Development

Learn how to detect text changes in UITextField in iOS with immediate access to updated text. Explore delegate methods, notifications, and alternative approaches for real-time text handling.

1 answer 2 views
Mobile DevFlutter json_serializable fromJson Error: Nested Classes Fix

Resolve 'The method 'fromJson' isn't defined for SubOne/SubTwo' in Flutter json_serializable nested classes. Add factory delegates with explicitToJson for self-referential lists. Full code, build_runner steps, and best practices.

1 answer 2 views
Mobile DevAlign IconButton with Text in Jetpack Compose Grid Using Weight

Fix IconButton misalignment in Jetpack Compose rows despite Modifier.weight on inner Icon. Align perfectly with Text and Switch in grids by weighting the button and using fillMaxSize. Full code examples and tips.

1 answer 2 views
Mobile DevFix KMM commonMain Unresolved Imports Android Studio

Resolve red unresolved imports in KMM commonMain source set despite successful Gradle builds and runs. Fixes for Android Studio templates: add android.library plugin, enable metadata flags, correct Compose and coroutines deps for Kotlin 2.3.0.

1 answer 2 views
Mobile DevSwift DispatchWorkItem Init: Fix Self Capture Error

Fix 'self captured by closure before members initialized' error in Swift class init when using DispatchWorkItem for macOS screen lock reminders. Use optional properties, helper methods, and [weak self] for cancel/reschedule without retain cycles.

1 answer 1 view
Mobile DevExpo Router: Swipe Direction Like Back for New Screens

Customize Expo Router swipe direction to mimic router.back() left-to-right animation on new screens using slide_from_left, gestureDirection: 'horizontal', and Stack options. Perfect for step-driven apps jumping to intermediary screens with intuitive back gestures.

1 answer 1 view
Mobile DevFix INSTALL_FAILED_INSUFFICIENT_STORAGE Error with android:installLocation

Learn how to resolve Android installation errors using the android:installLocation manifest attribute to install apps on external storage.

1 answer 1 view