How to get started?
Last updated
Was this helpful?
Last updated
Was this helpful?
We're not recommending calling any Natively 'Get Value' API in such events as "Page Is Loaded", "User is logged in" or any similar. Sometimes they can be called before Natively was injected into your website, and cause a value empty state.
First of all, you need to add a to your bubble app. To do this, go to the Plugins tab and search for Natively:
Click Install:
If you are planning to use a Push Notifications feature in your app fill out onesignal_appId & onesignal_apiKey fields:
You can find these values on your OneSignal app page:
Possible values:
"debug" - show errors in the console or display error alerts (For debugging purposes)
Open Debug Console
To open Debug Console, use -> Natively - Open Debug Console action in the plugin
Put the following code in your website header (between <head></head> tags)
To turn on Debug mode, please insert the following code after SDK import:
Installation:
Usage:
Important for NextJS users make sure to add 'use client' to the component where you're using Natively SDK.
"useNatively" is referring to "window.natively" everywhere in this documentation.
"preview" - To test the app in a (For now, only feature requires this)
The latest version number can be found in repo.
Example project: