aj-geddes avatar

Mobile Offline Support

This handles the fundamentals of building mobile apps that work without internet: local storage with AsyncStorage, Realm, or SQLite, sync queues for when connectivity returns, and conflict resolution strategies. You'll want this if you're building anything where users might lose signal or work in areas with spotty coverage. It covers React Native, iOS Core Data, and Android Room implementations. The best practices are solid reminders about things people forget, like monitoring storage limits and not syncing in tight loops. Honestly, offline support is one of those features that seems optional until your users start complaining, so it's worth getting right the first time.

skills.sh installs
545
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill mobile-offline-support --agent claude-code

Installs into .claude/skills of the current project.

Files

Mobile Offline Support

Table of Contents

Overview

Design offline-first mobile applications that provide seamless user experience regardless of connectivity.

When to Use

  • Building apps that work without internet connection
  • Implementing seamless sync when connectivity returns
  • Handling data conflicts between device and server
  • Reducing server load with intelligent caching
  • Improving app responsiveness with local storage

Quick Start

Minimal working example:

import AsyncStorage from '@react-native-async-storage/async-storage';
import NetInfo from '@react-native-community/netinfo';

class StorageManager {
  static async saveItems(items) {
    try {
      await AsyncStorage.setItem(
        'items_cache',
        JSON.stringify({ data: items, timestamp: Date.now() })
      );
    } catch (error) {
      console.error('Failed to save items:', error);
    }
  }

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
AI & Agent Building, Mobile Development, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1vintasoftware avatarcdrf-expertvintasoftware/django-ai-pluginsExpert guidance for Django REST Framework class-based views using Classy DRF (https://www.cdrf.co). Use when selecting or debugging APIView, GenericAPIView, con544skills.sh installs
2aj-geddes avatardesign-system-creationaj-geddes/useful-ai-promptsBuild comprehensive design systems with components, patterns, and guidelines. Enable consistent design, faster development, and better collaboration across team543skills.sh installs
3jwynia avatarpptx-generatorjwynia/agent-skillsCreate and manipulate PowerPoint PPTX files programmatically. Use when the user needs to generate presentations, modify PPTX templates, extract slide content, c543skills.sh installs
4aj-geddes avatargcp-cloud-runaj-geddes/useful-ai-promptsDeploy containerized applications on Google Cloud Run with automatic scaling, traffic management, and service mesh integration. Use for container-based serverle541skills.sh installs
5awslabs avatardsqlawslabs/mcpBuild with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, load data, and develop applications with a serverless, distri541skills.sh installs
6aj-geddes avatarcode-generation-templateaj-geddes/useful-ai-promptsGenerate code from templates and patterns including scaffolding, boilerplate generation, AST-based code generation, and template engines. Use when generating co537skills.sh installs