Mobile apps: React Native, iOS, Android and Flutter
Guidely runs in mobile apps as well as on the web. The same dashboard, guides, targeting rules, analytics, checklists, surveys and resource center work across all of them; each mobile SDK renders guides with native UI.
| SDK | Install |
|---|---|
| React Native / Expo | npm install @guidelytech/react-native @react-native-async-storage/async-storage |
| iOS (Swift, UIKit + SwiftUI, iOS 15+) | Swift Package Manager: https://github.com/GuidelyTech/guidely-ios (product Guidely), or CocoaPods pod 'GuidelyTech' |
| Android (Kotlin, Views + Compose, API 23+) | com.guidelytech:guidely-android (+ guidely-compose) from Maven Central |
| Flutter (Dart 3, Flutter 3.19+) | guidely_flutter — preview, not yet on pub.dev (see Flutter) |
| .NET MAUI / Xamarin | Not supported yet (see .NET MAUI and Xamarin) |
Desktop apps built with Electron use the web SDK plus @guidelytech/electron (sdk.md).
Every SDK needs the environment public key (Settings → Environments) and your Guidely API URL. The dashboard's install panel (Settings → Environments, or the project setup wizard) shows ready-to-copy snippets for each SDK with your key filled in.
How mobile differs from the web
| Concept | Web | Mobile |
|---|---|---|
| Which guides | Guides with Web checked under Trigger → Platforms | Guides with iOS and/or Android checked |
| Where you are | URL (/deals/42) | Screen name you report with screen("Deals"), matched as the path /Deals |
| Elements | CSS selectors, ids, data-* | Guidely ids you attach to views (GuidelyTarget, .guidelyTarget, Modifier.guidelyTarget) |
| Rendering | Shadow DOM overlay | Native views above your app |
Platforms
Every guide has a Platforms setting (Trigger panel in the editor). Guides created before mobile support existed are web-only, so installing a mobile SDK never surprises you with web content. A guide can target several platforms at once, for example a cross-platform announcement or a tour of a feature that looks the same everywhere. The SDK config endpoint filters by platform, so apps only download guides meant for them.
Screens
Call screen(name) whenever the visible screen changes (the React Native SDK does this for you with React Navigation). Screen views behave like web page views:
- URL patterns (Page restrictions), URL matches triggers, multi-page steps (
step.url) and URL visited checklist tasks match the screen path/<ScreenName>./Dealsmatches the screenDeals;/Deals/*matchesDeals/Detail. - Page load triggers fire on every screen view.
- Banners and hotspots restricted to screens close when the user moves to a screen they don't match.
- A
page_viewevent is recorded withproperties.screen.
Use stable, human-readable screen names (Home, Deals, Deals/Detail) — they are what authors type into the dashboard.
Guidely ids (targets)
Tooltips, spotlights and hotspots point at an element. On mobile, tag the view with a Guidely id and use the Guidely id selector kind in the editor (it is first in the selector list):
// React Native
<GuidelyTarget id="new-deal-button"><Button title="New deal" onPress={create} /></GuidelyTarget>
// SwiftUI / UIKit
Button("New deal", action: create).guidelyTarget("new-deal-button")
newDealButton.guidelyId = "new-deal-button"
// Compose / Views
Button(onClick = ::create, modifier = Modifier.guidelyTarget("new-deal-button")) { Text("New deal") }
newDealButton.guidelyTarget("new-deal-button")
On the web, the same id is the data-guidely-id attribute (<button data-guidely-id="new-deal-button">), and the element picker prefers it, so one guide can point at the same control in every app. Mobile SDKs also accept id selectors and CSS selectors that name a single id (#new-deal-button, [data-guidely-id='new-deal-button']). The editor warns when a mobile guide has a step without a mobile-compatible selector.
Taps on tagged views are observed (never intercepted), so Element clicked triggers, advance when the user clicks an element steps and Click checklist tasks work with Guidely ids too. Leaving the element field empty on a click-to-advance step uses the step's own target.
Targeting rules for apps
The rule builder has an App group:
| Rule | Value |
|---|---|
| Platform | web, ios or android (React Native reports ios/android) |
| Mobile screen | Current screen name; * wildcards |
| App version | Compared numerically, so 2.10 is newer than 2.9 |
Device type (mobile / tablet), operating system, locale, user and account traits, events, audiences, guide history and rollouts work exactly as on the web.
What renders how
| Step type | Mobile |
|---|---|
| Modal | Centered card, optional dimmed backdrop |
| Tooltip / popover | Card with an arrow next to the target; flips to fit the screen |
| Spotlight | Dimmed screen with a cut-out around the target (the target stays tappable) |
| Hotspot | Pulsing dot on the target; tapping it opens the card |
| Banner | Full-width strip at the top or bottom safe area |
| Slideout | Card docked to the bottom |
| Custom HTML | Shown as a plain modal (the editor warns about this) |
Step bodies support paragraphs, headings, bold/italic/underline, links, lists, inline code and images (imageUrl). A step video (videoUrl) shows as a poster with a play button and opens in the browser or the video's app when tapped. Checklists show a floating launcher (hide it with showChecklistLauncher: false and open checklists from your own UI); surveys appear as a bottom card; the resource center opens as a sheet from openResourceCenter() (no floating launcher unless showResourceCenterLauncher is on). A Link → Help article link in a guide opens that article in the resource center (or Scout's Help tab), as does openArticle(articleId), on every mobile SDK.
Scout messenger
Scout, the AI support messenger (scout.md), runs in mobile apps too. In Scout → Settings → Show it on, tick iOS and/or Android (and Web for your site — any combination). Apps on a ticked platform show a chat bubble (above the checklist launcher when both are on the same side) that opens a native sheet with Home, Messages and Help tabs: Scout's replies stream in, cite your articles and offer "Show me" buttons that start a guide; "Talk to a person" hands the conversation to the team Inbox, and team replies appear in the thread (the SDK polls while it is open and shows an unread badge otherwise). When the messenger is on, openResourceCenter() opens its Help tab.
| React Native | iOS | Android | |
|---|---|---|---|
| Open | guidely.openMessenger("help") | Guidely.shared.openMessenger(.help) | Guidely.openMessenger(MessengerTab.HELP) |
| New message | guidely.showNewMessage("…") | Guidely.shared.showNewMessage("…") | Guidely.showNewMessage("…") |
| Hide the bubble | showMessengerLauncher={false} | showMessengerLauncher: false | showMessengerLauncher = false |
| Events | messenger:open, conversation:message | .messengerOpen, .conversationMessage | MessengerOpen, ConversationMessage |
Questions from Scout workflows (React Native 0.19.0+, iOS and Android 0.7.0+) show their choices and a Skip button under the question, and the composer switches to an email, phone or number keyboard to match. Older SDKs show the choices as a numbered list, and typing the choice or its number answers it.
Conversations belong to the app install that started them; reset() on logout forgets them.
Allowed origins
Allowed origins protect browser installs only. Native and React Native apps send no Origin header and are identified by the public key alone (public keys are not secrets: they only unlock published configuration and event ingestion for one environment).
Links and deep links
Button and checklist URLs that start with http(s):// open in the system browser. Relative paths (/settings/billing) and custom schemes (northwind://deals/42) go to your onNavigate handler, so you can route them inside the app. In React Native the handler sees every URL first and returns true when it handled one; on iOS and Android it receives the relative and custom-scheme URLs (without a handler, custom schemes are opened by the OS).
React Native
npm install @guidelytech/react-native @react-native-async-storage/async-storage
cd ios && pod install
Works with Expo (SDK 50+, including Expo Go — the SDK has no native code) and bare React Native 0.72+.
// App.tsx
import AsyncStorage from "@react-native-async-storage/async-storage";
import { NavigationContainer, useNavigationContainerRef } from "@react-navigation/native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { GuidelyProvider, guidelyScreenLayout, useGuidelyNavigation } from "@guidelytech/react-native";
export default function App() {
const navigationRef = useNavigationContainerRef();
return (
<GuidelyProvider
projectId="pk_prod_xxx"
apiUrl="https://guidelytech.com"
storage={AsyncStorage}
insets={useSafeAreaInsets()}
user={currentUser ? { id: currentUser.id, traits: { plan: currentUser.plan } } : null}
onNavigate={(url) => openInAppRoute(url)}
>
<Navigation navigationRef={navigationRef} />
</GuidelyProvider>
);
}
function Navigation({ navigationRef }) {
// Reports every route change as a Guidely screen view (route name = screen name).
const guidely = useGuidelyNavigation(navigationRef);
return (
<NavigationContainer ref={navigationRef} {...guidely}>
{/* Scopes targets to their screen: inactive tabs stay mounted and would otherwise "match". */}
<Tab.Navigator screenLayout={guidelyScreenLayout}>{/* … */}</Tab.Navigator>
</NavigationContainer>
);
}
Put GuidelyProvider at the root, outside your navigators, so guides render above every screen. Pass storage — without it, identity and guide history only last for the current app session.
| API | Purpose |
|---|---|
useGuidely() | The client: identify, track, screen, startGuide, stopGuide, dismissGuide, openChecklist, openResourceCenter, reset, setConsent, on… (a no-op stand-in until ready) |
useGuidelyNavigation(ref) | React Navigation bridge (onReady / onStateChange) |
useGuidelyScreen(name) | Report a screen from a component (other navigators, modals) |
<GuidelyTarget id> / useGuidelyTarget(id) | Make a view targetable; the hook returns props to spread on an existing view instead of wrapping it |
guidelyScreenLayout / <GuidelyScreenScope name> | Tell Guidely which screen targets are on (React Navigation screenLayout, or wrap a screen by hand) |
useGuidelyIdentify(id, traits, account) | Identify when the signed-in user changes |
useGuidelyReady(), useGuidelyEvent(name, cb), useChecklistProgress(key), useGuideState(key), useActiveGuide() | State and events |
Provider props: every client option (projectId, apiUrl, environment, storage, debug, analytics, consent, appVersion, configRefreshMs, theme, onNavigate, onError, showChecklistLauncher, showResourceCenterLauncher) plus user, insets and launcherOffset (distance of the checklist launcher above the bottom inset, to clear tab bars; default 72).
GuidelyTarget wraps its children in a View. In a column layout that wrapper stretches to the full width, so a tooltip would point at the middle of the row: give it style={{ alignSelf: "flex-start" }} or use useGuidelyTarget. React Native's measureInWindow does not see views inside native-stack modals that are presented above the root view; tour those screens with modal steps or present them as regular screens.
Pass appVersion (for example from expo-application's nativeApplicationVersion) to use App version rules.
iOS
The SDK's README (in the guidely-ios repository) has the full reference.
import Guidely
Guidely.configure(GuidelyOptions(projectId: "pk_prod_xxx", apiURL: URL(string: "https://guidelytech.com")!, environment: .production))
Guidely.shared.identify(user.id, traits: ["plan": user.plan])
Guidely.shared.track("deal_created", properties: ["value": 1200])
// SwiftUI
DealsView().guidelyScreen("Deals")
Button("New deal", action: create).guidelyTarget("new-deal-button")
// UIKit
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated); Guidely.shared.screen("Deals") }
newDealButton.guidelyId = "new-deal-button"
Guides render in a pass-through overlay window above your app, so they work with SwiftUI and UIKit alike and never block touches outside guide UI.
Android
The SDK's README has the full reference.
class App : Application() {
override fun onCreate() {
super.onCreate()
Guidely.init(this, GuidelyOptions(projectId = "pk_prod_xxx", apiUrl = "https://guidelytech.com", environment = GuidelyEnvironment.PRODUCTION))
}
}
Guidely.identify(user.id, traits = mapOf("plan" to user.plan))
Guidely.track("deal_created", mapOf("value" to 1200))
// Compose (com.guidelytech:guidely-compose)
GuidelyScreen("Deals")
Button(onClick = ::create, modifier = Modifier.guidelyTarget("new-deal-button")) { Text("New deal") }
// Views
Guidely.screen("Deals") // in onResume()
newDealButton.guidelyTarget("new-deal-button")
Guides render in an overlay attached to the current Activity.
Session replay
The iOS, Android and React Native SDKs record sessions for the dashboard's Replays player. A mobile recording is a series of masked screenshots (by default one per second while the screen changes) plus touches, page views for each screen() and Guidely events. It plays in the same player as web recordings, with the same timeline, filters and alerts. There is no console or network tab for apps.
Recording is opt-in in the app as well as in the project settings, because screenshots of a native app are more sensitive than a masked web page:
// iOS
Guidely.configure(GuidelyOptions(projectId: "pk_…", sessionReplay: SessionReplayOptions(enabled: true)))
Text(account.iban).guidelyMask() // never recorded
// Android
Guidely.init(this, GuidelyOptions(projectId = "pk_…", sessionReplay = SessionReplayOptions(enabled = true)))
Text(account.iban, Modifier.guidelyMask()) // Compose; Views: view.guidelyMask = true
// React Native: npm install @guidelytech/react-native-replay, then rebuild the app (it has native code)
<GuidelyProvider projectId="pk_…" sessionReplay={{ enabled: true }} …>
<GuidelyMask><Text>{account.iban}</Text></GuidelyMask> // never recorded
Text fields are always masked; maskAllText / maskAllImages (an SDK option, or the project's "mask all text" setting) mask the rest. Masks are painted on the device before a frame is encoded. The sample rate, startSessionRecording() / stopSessionRecording(), consent and session rotation behave like the web SDK. Details and limitations: the "Session replay" sections of the iOS and Android SDK READMEs.
Feature flags
Flags come with every mobile SDK and use the key you already pass at start-up; see feature-flags.md for the concepts. All three SDKs evaluate flags exactly like the web SDKs.
// React Native
const enabled = useFlag("new-checkout");
const color = useFeatureValue("checkout-button-color", "blue");
// iOS
if Guidely.isFeatureEnabled("new-checkout") { … }
let color = Guidely.featureString("checkout-button-color", default: "blue")
@FeatureFlag("new-dashboard-banner") var showBanner // SwiftUI, updates on change
FeatureGate("new-onboarding") { NewOnboarding() } else: { Legacy() }
// Android
if (Guidely.isFeatureEnabled("new-checkout")) { … }
val color = Guidely.getFeatureValue("checkout-button-color", "blue")
val newCheckout = rememberFeatureFlag("new-checkout") // Compose, recomposes on change
FeatureGate("new-dashboard-banner") { Banner() }
- Attributes are filled from
identify:id(user id, or the anonymous id before identify), traits at the top level,account({ id, …traits }),$audiences, plusplatform,appVersion,osVersion,deviceType,locale,environmentand the current screen. Add your own withsetFlagAttributes. - Delivery: the payload is cached for offline cold starts, refreshed every 60 s while the app is in the foreground and when it returns;
streamingpushes changes instantly. Options live inflags: FlagsOptions(…)(enabled: falseturns flags off entirely; alsoremoteEval,decryptionKey,overrides,bootstrapPayload,reportUsage). - Experiments: exposures are sent as
experiment_viewedevents with the session, once per session, subject to consent like every other event. Usage counts are only sent while analytics is on and consent allows it. - Without guides: app extensions and apps that only want flags use the standalone client (
GuidelyFlagsClienton iOS and Android,<FlagsProvider>in React Native). isFeatureEnabledis the boolean getter: a string, number or JSON flag returns the default.
Authoring guides for mobile
- Open the guide, go to Trigger → Platforms and tick iOS and/or Android.
- For anchored steps, set the target to Guidely id and enter the id your developers attached.
- Restrict the guide to screens with Page restrictions (
/Home) or an App → Mobile screen rule, and use App → Platform when copy differs between iOS and Android. - Publish to the environment your app's key belongs to. Apps pick up changes on their next config refresh (every 5 minutes and when the app returns to the foreground).
The browser element picker and in-app preview are web-only for now; test mobile guides by publishing to the development environment and opening the app (debug: true logs every trigger decision).
Languages, schedules, throttling and A/B tests
- Languages: guides are shown in the visitor's language when translated (Guide → Translations): the SDK's
localeoption orsetLocale(...), then the user'slanguage/localetrait, then the device's languages; otherwise the project's default language. Guide events carrylocale. The resource center and the messenger's Help extras are translated too. - Schedules (start/end window on any guide) and guide throttling (Settings → Guides) work as on the web; launches are remembered on the device.
- A/B tests: variant guides show only to their bucket (the same bucket as on the web for the same user id) and record
experiment_viewedexposures. Control groups (no guide) record their exposure on every SDK without showing anything. - Not on mobile: custom CSS and code-block steps (code-only steps are left out of the config the server sends to apps). React Native shows the resource center's "What's new" and follows its section order (also in the messenger's Help tab); the native SDKs keep their own resource center layout and don't show "What's new" yet.
Consistency across SDKs
All SDKs apply targeting, URL/screen patterns, version comparison, rollout bucketing and frequency rules the same way, so a user lands in the same rollout bucket and sees the same guides on web, iOS and Android.
Errors and crashes
Every mobile SDK reports errors and crashes, Sentry style, once the project's error tracking is on (Settings → Privacy & data) and analytics and consent allow it. Wire format, mechanisms and limits: error-monitoring/sdks.md.
| iOS | Android | React Native | Flutter | |
|---|---|---|---|---|
| Capture | Guidely.captureException(error) (also NSException), captureMessage | Guidely.captureException(throwable, CaptureOptions(…)), captureMessage | captureException(err, { tags, extra, level }), captureMessage | Guidely.captureException(e, stackTrace: st), captureMessage |
| Scope | setTag(s), setExtra(s), setContext, setUser, addBreadcrumb | same | same | same |
| Automatic | NSSetUncaughtExceptionHandler + POSIX signal handlers (crash record written async-signal-safely, sent on the next launch), MetricKit crash diagnostics (iOS 14+, de-duplicated) | uncaught exceptions (handler chained, sent on the next launch), ANR watchdog (5 s), native crashes from ApplicationExitInfo (Android 11+) | ErrorUtils global handler (fatal errors persisted before the app dies), unhandled promise rejections (Hermes tracker) | FlutterError.onError, PlatformDispatcher.onError, Guidely.runZonedGuarded |
| Breadcrumbs | screens, taps, foreground/background, guides | screens, taps, lifecycle, guides | screens, taps, AppState, console, fetch/XHR, guides | screens, taps, lifecycle, guides |
| Symbolication | dSYMs (upload-dif, or sentry-cli debug-files upload) | ProGuard/R8 mapping (upload-proguard) | Hermes source maps (upload --include .bundle.map) | --split-debug-info symbols (upload-dif) |
| Options | GuidelyOptions(errors: ErrorOptions(…)) | GuidelyOptions(errors = ErrorOptions(…)) | errors={{ … }} | GuidelyOptions(errors: ErrorOptions(…)) |
- A crash (
level: fatal,handled: false) is written to disk when it happens and sent on the next launch with the session it ended (sessionId), its breadcrumbs, the device/OS/app contexts and, on iOS, the binary images loaded in that launch. Consentpendingkeeps the report on disk;denieddeletes it. The next launch is a new session. - Errors captured before the config has loaded are held (up to 10) until it's known whether the project takes them; the same error is sent at most 5 times per launch and at most 100 per session.
errors.ignoreErrors/denyUrls/allowUrlsbehave the same on every SDK (conformance vectorserrorFilters); for native frames the URL lists match the image or class name.- React Native native crashes (signals, JVM exceptions) need the native iOS/Android SDK in the app; the RN SDK reports JavaScript errors.
Upload debug files in CI (key with the debug-files:write scope):
npx @guidelytech/sourcemaps upload-dif build/MyApp.xcarchive/dSYMs # iOS
npx @guidelytech/sourcemaps upload-proguard app/build/outputs/mapping/release/mapping.txt --app-version "$VERSION" # Android
npx @guidelytech/sourcemaps upload-dif build/app/outputs/symbols # Flutter --split-debug-info
Outages
The mobile SDKs never depend on Guidely being up to keep your app working:
- Guides, the messenger and flags run from the configuration and flags cached on the device. With a cache, start-up waits at most 1.5 s each for config and identify, then continues from the cache and applies the fresh answer when it arrives.
- Data waits on the device. Events (up to 500), survey answers and guide/checklist progress are stored (UserDefaults, SharedPreferences, or the
storageyou pass to React Native) and delivered once Guidely answers again; the server drops duplicates. Withoutstorage, React Native keeps them only for the app session. - Backing off. After 3 failed requests in a row the SDK pauses background traffic (events, replay uploads, config refreshes, flag polls) for 5 s, doubling up to 5 min, or as long as
Retry-Afterasks, and resumes as soon as a request gets through. Messenger messages still go out. - Nothing hangs. Messenger replies give up after 30 s without a response or 60 s of silence, and on Android background uploads run on their own thread, so a stuck upload can't delay config or identify.
Product analytics in apps
Apps feed the same Pages, Heatmaps, Features, Funnels, Paths and Retention reports as your website. With SDK versions iOS/Android 0.4.0, React Native 0.11.0 and Flutter, the SDKs capture on their own:
| Event | What | Key properties |
|---|---|---|
page_view | Every screen() call (and the screen again when the app returns to the foreground, resumed: true) | path (/Deals), screen, platform |
page_leave | Leaving a screen, or the app going to the background | durationMs (foreground time on the screen), platform |
click | A tap on a button, link, cell or other interactive element | selector, tag, text, x/y, platform |
rage_click | 3+ taps within a second on the same spot | click properties + count |
heatmap | Tap positions per screen, batched | points, viewportWidth/Height, platform |
app_install / app_update | First launch of a fresh install / of a new version | appVersion, build (previousVersion, previousBuild) |
app_open / app_background | Cold start and every return to the foreground / going to the background | coldStart / foregroundMs |
Every event (not only these) carries the app version as appVersion, so analytics, errors and recordings can be filtered by version (App versions).
Turning it on and off. The project's switches in Settings → Privacy & data → Autocapture (Page leave, Clicks, Rage clicks, Heatmaps, App lifecycle (mobile)) apply to web and apps alike. An app can only turn things off for itself:
GuidelyOptions(projectId: "pk_…", autocapture: AutocaptureOptions(clicks: false)) // or .disabled
GuidelyOptions(projectId = "pk_…", autocapture = AutocaptureOptions(clicks = false)) // or AutocaptureOptions.DISABLED
<GuidelyProvider projectId="pk_…" autocapture={{ clicks: false }}> {/* or autocapture={false} */}
Analytics consent applies as everywhere else: nothing is captured while consent is pending or denied.
Which element was tapped (selector)
Features and click reports match taps by properties.selector, so it is built from the most stable thing the element has, in this order:
| Element has | selector |
|---|---|
A Guidely id (.guidelyTarget("x"), Modifier.guidelyTarget("x"), <GuidelyTarget id="x">, GuidelyTarget(id: "x")) | #x — the same id guides and the web's data-guidely-id use |
iOS accessibilityIdentifier | [accessibilityIdentifier="x"] |
Android view id (R.id.save_button) / Compose Modifier.testTag("x") | [resource-id="save_button"] / [testTag="x"] |
React Native nativeID / testID | [nativeID="x"] / [testID="x"] |
Flutter ValueKey<String> | [key="x"] |
| Nothing stable | A short view path, e.g. UITableViewCell:nth-of-type(3) > UIButton (changes when the layout does) |
Give the controls you care about a Guidely id (or one of the identifiers above) so their Features survive redesigns. text is the visible label (≤ 100 characters). Text fields are never read, and text is left out for anything masked (guidelyMask, GuidelyMask) or when mask all text is on.
Heatmaps for screens
On Pages → Heatmap, pick Mobile apps (or iOS / Android) in the platform menu and then a screen. Taps are split by device class (Phone under 768 pt wide, Tablet above, so a phone in landscape counts as a tablet) and drawn over the screen's most recent session recording when the app records sessions (session replay is opt-in per app, see below); otherwise over a blank canvas. Mobile heatmaps have no mouse-movement or scroll modes.
Platform notes
- iOS: taps are observed with a passive gesture recognizer on every app window (never delaying or cancelling touches). SwiftUI controls are recognised when they carry a Guidely id or are backed by UIKit (lists, navigation and tab bars); tag the others with
.guidelyTarget. - Android: taps are observed in the Activity window (dialogs and popups are not). Compose nodes are recognised through their semantics (
onClick,testTag, role). - React Native: taps are observed from a capture-phase root view (
GuidelyProviderwraps your app in aView style={{ flex: 1 }}); elements are found through React's component tree. Taps handled only by native gesture recognizers (react-native-gesture-handler buttons, native-stack headers) may not reach it. Install/update events need thestorageandappVersionprops.
Flutter
guidely_flutter is a preview of the Flutter SDK. It is not published to pub.dev yet; add it from this repository's mobile/flutter folder (path or git dependency) to try it. It follows the same contract as the other SDKs (mobile/SPEC.md): identify, track, screens (with a NavigatorObserver for automatic screens), tap autocapture and the events above, feature flags (passing the shared conformance vectors), guides (modal, banner, tooltip anchored to a GuidelyTarget widget, checklists, surveys and NPS), the resource center as a native sheet, and the offline queue and back-off described under Outages.
import 'package:guidely_flutter/guidely_flutter.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Guidely.init(GuidelyOptions(projectId: 'pk_prod_xxx', apiUrl: 'https://guidelytech.com'));
runApp(GuidelyProvider(child: MaterialApp(navigatorObservers: [GuidelyNavigatorObserver()], home: const Home())));
}
GuidelyTarget(id: 'new-deal-button', child: ElevatedButton(onPressed: create, child: const Text('New deal')));
Guidely.identify('user_42', traits: {'plan': 'pro'});
Guidely.track('deal_created', properties: {'value': 1200});
if (Guidely.isFeatureEnabled('new-checkout')) { … }
The package README (mobile/flutter/README.md) lists what renders natively today and what is not supported yet.
.NET MAUI and Xamarin
There is no .NET SDK yet. It is on the roadmap; until then, MAUI apps that host web content in a WebView/BlazorWebView can use the web SDK inside it, and server-side events can come from your backend (server-sdks.md). Tell us at support@guidelytech.com if you need it.
Troubleshooting
| Symptom | Check |
|---|---|
| No guides at all | debug: true and look for config loaded … N guides. N = 0 means no published guide has your platform ticked, or the key belongs to another environment. |
| Guide never starts | Its screen restriction must match the name you pass to screen() (case-sensitive, matched as /<Name>). Frequency once guides do not reappear after being seen — reset() gives you a fresh anonymous user. |
| Tooltip shows as a modal or is skipped | The target id was not found on screen within the step's wait time. Make sure the view is tagged with the same Guidely id and is visible. |
| Tooltip points at the wrong place (React Native) | The GuidelyTarget wrapper is stretching; see the note above. |
| Tooltip points at a control on another tab (React Native) | Add screenLayout={guidelyScreenLayout} to the navigator (or GuidelyScreenScope). |
Taps show up with a long UIView > … / FrameLayout > … selector | The element has no stable identifier: give it a Guidely id, accessibilityIdentifier, view id / testTag or nativeID. |
No click events from the app | Clicks must be on in Settings → Privacy & data → Autocapture, the app must not pass autocapture off, and consent must be granted. Taps on non-interactive areas only feed heatmaps and rage taps. |