How to Let Users Save Pages as Favorites in Your App

Posted on 24. February 2025 by Jan Bunk

A humanoid robot putting a letter into a mailbox with a neon city street in the background, digital art

Ever wanted to make it easier for your users to find the pages they visit most often? With our favorite feature, users can mark pages as favorites, organize them into lists, and quickly access them whenever they need. It’s a simple but powerful addition that enhances app navigation and keeps users engaged.

How the Favorite Feature Works

Once enabled, users will see a heart icon in the app bar. Tapping it allows them to save the current page as a favorite. Users can:

  • Save pages to their favorites

  • Create their own favorite lists

  • View all their saved favorites

  • Import and export favorites to other devices

Enabling the Favorite Feature in Your App

Activating favorites in your app is easy! Simply turn on the feature in your webtoapp.design dashboard and users will immediately have access to it.

Categorizing Favorites (Optional)

Want favorites to be organized into categories? You can define a Favorite Category Extractor Script. This script runs on the page that is being favorited and determines the category name dynamically.

For example, if you want to categorize favorites based on the first part of the URL, you can use this script:

window.location.pathname.split("/")[1];

If no script is provided, favorites will remain uncategorized.

Adding Images to Favorites (Optional)

To make favorites even more visually appealing, you can attach images to them. This is done by specifying a Favorite Image Extractor Script. The script runs on the page that is being favorited and should return an image URL.

For example, to use the og:image (which is also used for link previews on social media), you can use this script:

document.querySelector('meta[property="og:image"]').content;

If no script is provided, favorites will be saved without an image.

A Look at the Favorite Feature in Action

Here’s how the feature appears in the app:

Favorite Button in the App Bar

Users can tap the heart icon to favorite a page instantly.

A screenshot showing the favorite button in the app's app bar.

Add to Favorites Dialog

Users can choose an existing list or create a new one to store the favorite.

A screenshot of the favorite list selection dialog.

Favorites in the Drawer Menu

A button in the app menu lets users access their saved favorites quickly.

A screenshot showing the "Favorites" menu item in the drawer menu.

Favorite List Overview Page

Users can see an overview of all their favorite lists.

A screenshot showing two favorite lists.

Category Overview Page (If Enabled)

If categories are set up, users can navigate their favorites based on categories (only in the default favorites list, not custom lists).

A screenshot showing two example categories.

Page Showing Saved Favorites

Here's how the actual favorites are displayed after selecting a list.

A screenshot showing all the favorites in a list.

Import/Export Favorites

Users can export their favorites via the system share dialog. That way they can save the favorites file locally or in the cloud or even directly share the file via e-mail or messaging apps. Once sent to their other device, they can import the favorites by selecting the exported file in a file selector screen.

A screenshot showing the dialog that allows importing and exporting favorites.

Why This Feature Is a Game-Changer

The favorite feature makes your app more intuitive and user-friendly. Users can effortlessly bookmark their most-visited pages, organize them in ways that suit them best, and transfer their favorites between devices. With complete control over how favorites are categorized and displayed, you can tailor the experience to fit your app's needs perfectly.

With the favorite feature, your app becomes more user-friendly, organized, and engaging. Try it out today and let your users experience the convenience firsthand!

Related Articles


A humanoid robot putting a letter into a mailbox with a neon city street in the background, digital art

How to Set up the Store Settings in the Google Play Console

Here's how you can choose an app category and enter a contact email address for your app in the Google Play Console.

A humanoid robot opening the door to a factory production floor, digital art

How to: Request Access to the Production Track

To make your app publicly available in the Google Play Store, you need access to the production track. Here's how you can request it.

A humanoid robot filling out an application in a spaceship, digital art

Creating an Apple Developer Account to Publish Your App in the App Store

Apple Developer accounts are needed to publish your app. Find out how to create one here.


Author Jan Bunk
Written by
Jan Bunk

Hi, I'm Jan! I created webtoapp.design in 2019 while studying computer science in university. A lot has changed since then - not only have I graduated, but it's also no longer just me running webtoapp.design. We've grown to a global, fully remote team and have gathered lots of experience around app development and app publishing. We've created and published hundreds of apps in the app stores, where they've been downloaded millions of times.