Wishlist in Mobile App

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Wishlist in Mobile App
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1050
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Developing a Wishlist in Mobile Apps

Wishlist is a feature that's underestimated. Add a product, close the app, reopen from a different phone a week later — the list should be there. A simple task turns into a synchronization problem, conflict management, and optimistic UI.

Where to store: locally or in the cloud

Depends on authentication requirements:

  • Authenticated users only: Firestore, PostgreSQL, any server database. List bound to userId.
  • Guest users + sync on registration: AsyncStorage / MMKV for guests, on login — merge with server.

Merge variant is more complex. Guest could add 10 products, and their new account already has 5 (import from another service). Merge strategy: union of two sets, no duplicates by productId.

Optimistic UI

The wishlist button should respond instantly — without waiting for server response. Common mistake: set loading on click and block the button for request duration. User sees delay and thinks they didn't click.

const useWishlist = () => {
  const [wishlistIds, setWishlistIds] = useAtom(wishlistAtom);

  const toggle = useCallback(async (productId: string) => {
    const isAdding = !wishlistIds.has(productId);

    // Immediate UI change
    setWishlistIds(prev => {
      const next = new Set(prev);
      isAdding ? next.add(productId) : next.delete(productId);
      return next;
    });

    try {
      if (isAdding) {
        await api.wishlist.add(productId);
      } else {
        await api.wishlist.remove(productId);
      }
    } catch {
      // Rollback on error
      setWishlistIds(prev => {
        const next = new Set(prev);
        isAdding ? next.delete(productId) : next.add(productId);
        return next;
      });
      Toast.show('Failed to update wishlist');
    }
  }, [wishlistIds]);

  return { wishlistIds, toggle };
};

MMKV for local cache

AsyncStorage is slow. For wishlist read on every product card render, use MMKV (react-native-mmkv). Synchronous read — no await:

import { MMKV } from 'react-native-mmkv';

const storage = new MMKV({ id: 'wishlist' });

const getLocalWishlist = (): Set<string> => {
  const raw = storage.getString('ids');
  return raw ? new Set(JSON.parse(raw)) : new Set();
};

const saveLocalWishlist = (ids: Set<string>) => {
  storage.set('ids', JSON.stringify([...ids]));
};

Synchronous read from MMKV on main thread is safe, operation takes <0.1 ms.

Wishlist count in icon badge

Badge with number of elements in wishlist is derived from wishlistIds.size. Don't make a separate request for the counter. If wishlist is synchronized — the set size is already known.

Timeline

Wishlist with optimistic UI, MMKV cache, and cloud sync (Firestore or REST): 1–2 weeks.