Skip to content
← All insights

Connectors6 min read

How to choose and test a connector for your mobile app

Work backwards from a user action to select a service, configure Test and Live details, interpret a connection check and verify a complete mobile flow.

Brightly coloured connector cables and plugs arranged side by side

Decide which service owns the information and what the user needs to do with it. A successful connection check earns a feature test with known records and an expected result.

A florist wants customers to browse bouquets in a mobile app. The shop already maintains product names, prices and availability in Shopify. Before adding a database or choosing a search engine, ask the owner to show you where they will correct tomorrow’s price. That answer identifies the source the app should read. A second editable copy of the catalogue would create a second place to make mistakes.

Match one action to one owner

For the florist, the first task is “Open a bouquet and see its current name and price”. Shopify owns the catalogue. Start with a small catalogue read and a detail screen. If the task becomes “Keep my private list of preferred delivery addresses”, customer-specific storage and access rules enter the picture. A Supabase project may fit that job. WordPress makes more sense when the material is already edited as posts or pages, such as the shop’s seasonal care guides. The same company can need all three services eventually, but each action should have one clear source of truth.

Write down the service, the record you expect and who may see it. One line might be “Shopify test shop, published bouquet Evening Iris, visible to anyone browsing the catalogue.” Another might be “Customer address, readable only by its owner.” A publicly accessible test record can help prove the first feature. It would be completely inadequate evidence for the second.

For the florist, open Connect, choose the Commerce category and read the Shopify card before entering a store address. The card describes public products and collections. A request to reserve the last bouquet or take payment is a different job. Write that request on a separate line in the brief so a catalogue that opens successfully cannot accidentally pass an ordering test.

Shopify’s card in the Commerce category describes public products and collections and offers Connect Shopify.

A useful first fixture is a published bouquet with an unmistakable name and just one size. Pick a second, unpublished bouquet in the same test shop. Seeing the published item establishes that the screen can get some data. Checking that the unpublished one stays out establishes which catalogue the customer can browse. Both checks matter before you let a shop owner judge the design using familiar product photographs.

Connect a test environment you can recognise

In Appsanic, open Connect in the rail and choose the service. Enter the client-safe values requested under Test details. For a service offering both public and server credentials, use precisely the public credential its setup guide specifies. An installed mobile app is distributed to other people. Any value it needs on the device must be treated as visible to its user.

Choose Check connection, read its findings and save the connection. Keep Available to your app enabled for the connection your project will use. Give Test a clearly distinguishable fixture, such as a bouquet named “Sample – violet wrapping”. Now a glance at the preview can tell you whether the screen is reading your fixture or showing yesterday’s sample artwork. The connector guide explains the Test and Live controls for each supported service.

Read the two parts of the setup screen in order. First, Test details asks for the store’s original .myshopify.com address. The example below uses a fictional address. Replace it with the one shown under Domains in your development store. Next, read the connection status and use Check connection. Opening this screen does not contact your example shop by itself.

If the test store also has a customer-facing domain, keep that domain in your handover notes alongside the original store address. It makes it easier to spot the wrong shop when someone configures Live later. Keep a separate line for the product handle and the price you checked. A colleague should be able to repeat your catalogue test using just those notes and an ordinary phone.

Give the first read an expected answer

Ask Sanic AI to use the saved connector and read a bounded list. Specify which fields go on screen, how a user opens one item and what an empty response should display. When the preview runs, compare the title and price against the provider dashboard. Edit one harmless value in the test shop, refresh, and check again. If the original value stays visible, verify the environment, publication status, selected shop and whether the app uses local sample data or a cached result.

A successful check establishes something narrower than a successful feature. Public credentials can be accepted while a particular item remains unavailable to that client. A catalogue read can work while checkout needs separate work. Some connectors rely on a native SDK, so their operations can have different availability in a browser or Expo Go. Inspect the connector’s documented runtime support before adding a screen whose only action depends on that SDK.

Make the switch to Live deliberate

  1. Configure the Live project separately and check its public details. Choose a harmless record you recognise in the real service.
  2. Review the exact screens that consume the connection. Ensure an error leaves the customer a readable message and a way forward.
  3. Switch Use Live in app when ready, then check the preview against the known live record. The setting affects previews and future builds. A previously installed build retains its configuration.
  4. Write down the service name, environment and test record you used. Next month another builder should be able to repeat the check after a provider change.

For the florist, the useful milestone is a customer opening the real bouquet they expected and seeing the correct price. That test is small enough to repeat and specific enough to catch the common mistake of connecting successfully to the wrong shop. Start with the Shopify connector reference if that is where your catalogue already lives.

Prove that the catalogue can load a second page

Give the florist’s test storefront exactly five published bouquets. Set the app’s first catalogue request to a limit of two. Write down the two handles the provider actually returns. Then tap Load more twice. The visible row count should go from two to four to five. Each handle should appear once, and the final page should retire the Load more control. This catches a connector that passes its initial check while the screen quietly keeps requesting page one.

For Shopify, read the product list’s pageInfo. When hasNextPage is true, pass its endCursor as after on the next request. Use a product’s stable identifier when combining the pages. Two bouquets may share the title “Market bunch” even though customers can open them separately. If a second-page request fails, leave the first two bouquets visible and retry from the same cursor.

Make the last bouquet recognisable in the provider, then open it from the phone and compare the handle and price. For the next check, the small-shop catalogue walkthrough follows an individual choice into a shopping bag.

Explore Appsanic connectors

Published

Analytics cookies

With your OK, we use Google Analytics to count visits and see which pages people find useful. It sets cookies and sends Google details of your visit, such as the pages you open. Nothing loads unless you accept. Cookie Policy