For the complete documentation index, see llms.txt. This page is also available as Markdown.

🏅How to get started?

Everything you need to integrate the Natively JavaScript SDK or Bubble plugin into your project.

Natively provides several ways to integrate native features into your web app: the JavaScript SDK for loading via CDN script tag, Bubble plugin for no-code Bubble apps, NPM package for framework-based projects like React or Next.js, and support for AI-powered editors like Lovable, Base44, and Replit. This page covers the global setup and configuration that applies across all features. For feature-specific implementation, refer to the individual feature pages.

The fastest way to add native features to your Bubble app without writing any code.

Installation

  • Navigate to the Plugins tab in your Bubble editor.

  • Search for Natively and click Install.

Configuration (Headers)

The mode field in the plugin settings controls environment-specific behavior:

  • debug - enables detailed error alerts and console logs. Recommended during development.

  • preview - Required for testing Push Notifications within the Natively Preview app. Remove this tag before testing your own build.

Configuration (API Keys)

  • onesignal_appId - links your mobile app to your specific OneSignal project to enable device registration.

  • onesignal_apiKey - authorizes your Bubble web app to trigger push notifications via OneSignal.

  • revenuecat_apiKey - Allows your Bubble web app to verify purchases and sync subscription statuses with RevenueCat (In-app purchases).

Explore our Example App to see a full configuration of the Natively plugin. Use this sandbox to inspect functional workflows, element states, and API setups.

Include the Natively SDK to bridge the gap between your web code and the mobile OS. Add the following to your <head> tag:

You can target a specific SDK version by modifying the version number in the CDN URL (e.g., 2.26.0).

  • Standard Syntax: https://cdn.jsdelivr.net/npm/natively@VERSION_NUMBER/natively-frontend.min.js

  • To ensure you are using the most up-to-date features, refer to the Natively GitHub Repository for the latest version number.

Installation

Install the Natively package via npm.

Usage

Example project: Next.js boilerplate

You can target a specific version by modifying the version number (e.g., 2.26.0).

  • Standard Syntax: npm install natively@">=VERSION_NUMBER"

  • To ensure you are using the most up-to-date features, refer to the Natively GitHub Repository for the latest version number.

AI-powered editors like Lovable, Base44, and Replit use the JavaScript SDK to implement Natively features. Before implementing any feature, the Natively SDK must be initialized in your project.

Copy the line below and paste it into your AI agent to check and set up the Natively SDK in your project.

Last updated