I9Ionic 9 Store App Guide
Installation and release documentation

Ship one store app to Android, PWA and iOS.

This guide connects an Ionic 9 application to an OpenCart 3 or OpenCart 4 store and takes the same codebase through local development, the direct API connection, signed Android packages, an installable PWA, and an Apple App Store release.

OpenCart connector→Ionic 9 + Angular→Capacitor 8→APK · AAB · PWA · iOS
Quick start

Start here

Use the order below for a new store. It keeps the store API, app configuration, and native signing separate so each failure has a clear place to diagnose.

1. Prepare the store

Install the matching Websky Mobile connector, refresh modifications, grant admin permissions, and save the public catalog key.

2. Inspect before building

Configure the API connection, verify the common home response, and then choose outputs.

3. Build and verify

Test PWA in a clean browser, install the debug APK on a device, and use a signed AAB or iOS archive for distribution.

Credentials: keep store tokens, keystores, passwords, Firebase service accounts, and Apple signing material in a secret manager or private environment. Put placeholders in documentation and never commit live values.
Screens and user flows

Main app screens and user flows

Actual UI screenshots of the English customer flows. Interface labels are English; customer and catalog records follow the store data. No imported stock photographs or promotional brand banners are used in these captures.

Password sign-in
Password sign-inUse an email address or registered phone number and password. Login creates a separate customer session.
Authenticated customer account
Authenticated customer accountAccount details are customer records, which can be in any language. Interface labels follow the selected app language.
Account and order status
Account and order statusA real signed-in demo account showing its own order counters and account actions.
Password recovery
Password recoveryA generic recovery response, a six-digit code, new password and confirmation. Codes expire after ten minutes and five attempts.
Guest shopping cart
Guest shopping cartThe empty cart after logout. Adding products creates an independent guest cart; customer data requires sign-in.
Walkthrough: browse the catalog, open a product, add it to the cart, sign in, and review your own profile and orders. Try recovery only with a test account. Test payments only through a configured sandbox gateway.
Foundation

1 · Architecture and version matrix

The mobile app is a web application packaged by Capacitor. OpenCart remains the catalog, account, cart, checkout, and order system; the connector exposes a stable API surface for the app.

LayerOpenCart 3 profileOpenCart 4 profileWhy it matters
Store URLhttps://your-store.example/https://your-store.example/Use the buyer store HTTPS origin that the app devices can reach.
Connector route prefixextension/api32/extension/websky_mobile/api_32/The route is different even when the visible app screens are the same.
API authenticationSend the public catalog key in the X-Websky-Store header. After login, send the customer token in Authorization: Bearer. Neither credential nor a session ID belongs in a URL.
FrontendIonic 9 · Angular 20 · TypeScript · RxJSOne codebase can target web and native shells.
Native bridgeCapacitor 8 · Android · iOSNative plugins need a platform sync after every web or plugin change.

Data flow

OpenCart admin→Websky Mobile connector→HTTPS JSON API→Ionic service layer→Web / Android / iOS
Current template defaults: the sample configuration selects OpenCart 3; set the profile to match your installed connector, the app ID com.webskygroup.opencartmobile, compile SDK 36, target SDK 36, and production service-worker registration. Review Android target requirements before every Play release because Google changes them.
Store setup

2 · Install the connector on OpenCart 3

Use a package that matches the OpenCart 3 codebase and PHP version. The filename may be supplied by your module vendor; the steps below assume an OCMOD package such as websky_mobile_v3.ocmod.zip.

Back up the store

Back up the database and the active OpenCart files. Record the current PHP version, database prefix, active theme, and the current modification list.

Upload through the Extension Installer

Sign in to the OpenCart 3 admin panel, open Extensions → Installer, choose the matching .ocmod.zip, and wait for the upload result.

Refresh OCMOD

Open Extensions → Modifications and press the blue refresh button. Confirm the module appears in the list without an error or duplicate path.

Install and enable the module

Open Extensions → Extensions, filter by Modules, install Websky Mobile, then open its settings and enable the connector.

Grant permissions

In System → Users → User Groups, grant the administrator group access and modify permissions for the module administration routes. Save, sign out, and sign in again.

Save the connection settings

Set the store name, application options, allowed languages, and the Web Service token. Keep the token private and save the module before testing an endpoint.

OpenCart 3 smoke request · replace placeholders
curl --fail --silent --show-error -H "X-Websky-Store: YOUR_PUBLIC_KEY" \
  "https://store.example/index.php?route=extension/api32/common/module"

# Expected result: HTTP 200 and valid JSON from the connector.
# A storefront HTML page, a login page, or an HTTP 200 error page is not success.
Do not skip the refresh: a module can be installed in the admin database while its OCMOD files are still stale. Always refresh modifications, clear the theme/modification cache, and test the actual API response.
Store setup

3 · Install the connector on OpenCart 4

OpenCart 4 uses the newer extension layout and route names. Install the package from the OpenCart 4 release, not an OpenCart 3 archive.

Back up and record the baseline

Save a database dump and a narrow copy of the active extension files. Record the OpenCart version, PHP version, storage path, and active language.

Upload the package

In the admin panel open Extensions → Installer, upload the supplied native .ocmod.zip, and confirm that OpenCart reports a completed upload.

Install the native extension and refresh caches

After upload, use the Installer install action for Websky Mobile. Clear the theme/template cache from the dashboard developer settings and reload the administration page. This native OC4 package does not use the OpenCart 3 Modifications workflow.

Install, enable, and grant permissions

Under Extensions → Extensions, select the module type, install Websky Mobile, enable it, and grant access/modify permissions to the administrator group.

Configure the service

Save the public catalog key, language list, home layout and optional notification settings. Configure social sign-in and notifications only after setting up buyer-owned provider accounts. Separately licensed seller, delivery, wallet-mutation and SMS-only adapters are not included. Save once, reload the page, and confirm the values persist.

OpenCart 4 smoke request · replace placeholders
curl --fail --silent --show-error -H "X-Websky-Store: YOUR_PUBLIC_KEY" \
  "https://store.example/index.php?route=extension/websky_mobile/api_32/common/module"

# Other useful checks:
curl -H "X-Websky-Store: YOUR_PUBLIC_KEY" "https://store.example/index.php?route=extension/websky_mobile/api_32/common/home&language=en-gb"
curl -H "X-Websky-Store: YOUR_PUBLIC_KEY" "https://store.example/index.php?route=extension/websky_mobile/api_32/common/menu&language=en-gb"

The public catalog key is sent in the X-Websky-Store header. After sign-in, customer calls also carry Authorization: Bearer. Do not put either value or a session ID in a URL.

English administration

Admin language and installation defaults

App 3.2.20 · OpenCart 3 connector 3.1.8 · OpenCart 4 connector 4.3.6. The administration interface follows the active OpenCart admin language. English is the fallback. The language selected for an application layout controls its merchant-entered content, not the designer controls.

  1. Select English as the administration language in OpenCart and sign in again. Install the connector matching your OpenCart major version.
  2. On OpenCart 3, refresh Extensions → Modifications after installing the OCMOD package. Refresh the theme/template cache. On OpenCart 4, install and enable the native extension through the installer.
  3. Open Mobile Application → Application management, then Application home page design. Tab controls, module groups, save/build panels and validation errors should be English. Edit banner, slideshow, products and support forms from the matching module area.
  4. Translate built-in labels in the connector’s admin/language/en-gb/ and catalog/language/en-gb/ files. Persian strings are kept in fa-ir locale files. The shared designer dictionary is extension/design/workspace.php on OC3 and design/workspace.php on OC4, relative to the admin language directory.

On a fresh OC3 support installation, required departments and statuses use English labels for the languages actually installed in the store. Status colours use language-neutral codes. No sample FAQs or legal policies are inserted. Reinstallation preserves existing departments, tickets, FAQs, customer records, catalog media and merchant translations; it does not translate existing store content.

Actual English banner form on stock OpenCart 3.0.4.0
OpenCart 3.0.4.0: English banner editor with localized control labels.
Actual English banner form on stock OpenCart 4.1.0.4
OpenCart 4.1.0.4: English breadcrumb, form labels and banner controls.
If a page displays a raw key such as heading_title, check that the matching English language files were uploaded, refresh OpenCart’s template/modification caches, and reload the admin page. Do not copy catalog language files into the admin directory or change customer data to repair a UI label.
Verification

4 · Verify the connector before building

Verification must prove JSON, authentication, and the data the app needs. A browser page with HTTP 200 is not enough.

Response checks

  • Status is 200.
  • Content-Type is JSON.
  • Response is valid JSON.
  • No PHP warning, login HTML, or fatal error is present.

Data checks

  • Home layout contains the expected modules.
  • At least one category and product image resolves.
  • Language and currency endpoints return the selected values.
  • Authentication fails when the token is intentionally wrong.
PowerShell validation
$uri = "https://your-store.example/index.php?route=extension/api32/common/module"
$headers = @{ "X-Websky-Store" = $env:OPENCART_PUBLIC_KEY }
$r = Invoke-WebRequest -UseBasicParsing -Uri $uri -Headers $headers
if ($r.StatusCode -ne 200) { throw "HTTP $($r.StatusCode)" }
if ($r.Headers['Content-Type'] -notmatch 'json') { throw 'The response is not JSON' }
$json = $r.Content | ConvertFrom-Json
$json | ConvertTo-Json -Depth 12
CORS and TLS: the API origin must be reachable from the browser and from a real phone. Fix the certificate chain, mixed-content URLs, CORS headers, redirects, and firewall rules before changing Ionic code.
Developer workflow

5 · Set up and run the Ionic 9 project locally

Use a clean checkout and the lockfile. Do not copy node_modules, build caches, keystores, Firebase service accounts, or server credentials between machines.

Required tools

  • Node.js 22 or newer
  • npm from the same Node installation
  • Java JDK 21 for Android
  • Android Studio and an Android SDK
  • macOS with Xcode for iOS
  • Git and a code editor

Project facts

  • @ionic/angular 9.0.0
  • @capacitor/core 8.1.x
  • Angular production build output: www
  • Angular service worker enabled in production
  • Native folders: android and ios
Windows, macOS, or Linux
# Extract the buyer ZIP into an empty directory and open a terminal there.
cd Ionic-Source
npm ci
# Copy store-config.example.json to a private location and edit your store profile.
# Set WEBSKY_STORE_CONFIG to that private JSON file before building.
npx ionic info
npm start

# Production web build
npm run build -- --configuration production

# Native sync after a web or plugin change
npx cap sync

For a device test, run the development server on your LAN and use the phone's browser or Capacitor live reload only during development. For release builds, copy the compiled www directory into the native project through npx cap sync.

Keep store selection in one configuration service. In this project the OpenCart 3 and 4 profiles are selected through the openCartVersion setting and share the same UI components while using different base URLs and route prefixes.
API connection

6 · Connect Ionic to OpenCart

The buyer source connects directly to the buyer's OpenCart installation. Builds and API requests run from the buyer's development environment.

1. Install the matching connector

Install the OC3 archive on OpenCart 3 or the OC4 archive on OpenCart 4. Enable the module, refresh modifications, and copy the public catalog key from the module settings.

2. Create a private store configuration

Copy store-config.example.json to a private file. Set baseUrl to the store origin with a trailing slash, publicKey to the module's public catalog key, openCartVersion to 3 or 4, and language to en-gb.

3. Select the profile during build

Set WEBSKY_STORE_CONFIG to the private JSON path and run the normal build. The prebuild script generates an ignored runtime configuration; it never writes the private value into source control.

4. Verify the public API

Open the store's common home endpoint and confirm it returns JSON. The app sends the catalog key in X-Websky-Store. Customer requests receive a separate Authorization: Bearer header after login.

OpenCart 3 example
curl -i -H "X-Websky-Store: YOUR_PUBLIC_KEY" \
  "https://store.example/index.php?route=extension/api32/common/home&language=en-gb"

# OpenCart 4 uses the native extension route:
curl -i -H "X-Websky-Store: YOUR_PUBLIC_KEY" \
  "https://store.example/index.php?route=extension/websky_mobile/api_32/common/home&language=en-gb"
Keep credentials out of URLs. Do not put public keys, customer bearer tokens, session IDs, signing passwords or Firebase service-account values in query strings, screenshots, source control or support tickets. The payment redirect uses a short-lived, one-use server ticket and does not expose a bearer token.

Useful request sequence

  1. Call common/home with X-Websky-Store.
  2. POST login credentials to account/login; save the returned customer token privately.
  3. Send that token as Authorization: Bearer ... for addresses, cart, payment methods and checkout.
  4. POST checkout data to checkout/confirm. For online payment, open the returned short-lived redirect URL.
Android

7 · Build, sign, and release Android

Android has two release surfaces: an installable APK and a Play-distributed AAB. Use a debug build for device testing and a signed release build for distribution.

Android Studio: visual step-by-step

Use this flow when you want to inspect the native project, run the app on a device, or create an APK/AAB from the Android Studio interface.

FILE → OPENYOUR_PROJECT/androidOpen
Step 1 · Open the native projectOpen the android folder, not the repository root.
GRADLE NOTIFICATIONGradle files have changed.Sync Now
Step 2 · Sync GradlePress Sync Now or use File → Sync Project with Gradle Files.
DEVICE SELECTORPixel 8 API 35 / USB phone▶ Run
Step 3 · Select a deviceChoose an emulator or USB device with developer mode enabled, then press Run.
BUILD MENUGenerate App Bundles or APKsBuild APK(s) · Signed Bundle / APK
Step 4 · Choose the outputUse Build APK(s) for a test APK or Generate Signed Bundle / APK for release.
BUILD SUCCESSFULapp-debug.apkapp-release.aab
Step 5 · Locate and inspectUse the notification link or open the output folder and inspect the package ID and version.
DEVICE TESTadb install -r
Step 6 · Install and testInstall on a real device, launch the app, and check the store flows before release.
✓
Important: Android Studio can build a file successfully while the app still fails at launch. Inspect the manifest, install the exact artifact, and check adb logcat on a physical device.

Android Studio procedure

Prepare web assets

From the project root run npm run build -- --configuration production, then run npx cap sync android. This copies the current web build and native plugin changes into the Android project.

Open the Android project

Run npx cap open android, or open the repository's android folder in Android Studio. Wait until indexing and Gradle sync complete.

Check the configuration

Open android/app/build.gradle and verify applicationId, versionCode, versionName, signing configuration, and target SDK. Never paste passwords into a committed Gradle file.

Run a debug build

Select an emulator or connected phone from the device selector and press the green Run button. Fix the first compile or runtime error before testing later screens.

Generate a release artifact

Choose Build → Generate App Bundles or APKs. Choose Build APK(s) for a test APK, or choose Generate Signed Bundle / APK, select Android App Bundle for Google Play, choose the keystore, and complete the wizard.

Verify the file

Use the Android Studio notification link, Analyze APK, and a real device install. Confirm the package ID, version code, launcher, permissions, network calls, checkout, deep links, and notifications.

Output locations

Debug APKandroid/app/build/outputs/apk/debug/app-debug.apk
Release APKandroid/app/build/outputs/apk/release/app-release.apk
Release AABandroid/app/build/outputs/bundle/release/app-release.aab
Optional command-line verification after Android Studio
adb devices
adb install -r android/app/build/outputs/apk/debug/app-debug.apk
adb shell dumpsys package com.webskygroup.opencartmobile | findstr /I "versionCode versionName"
adb shell monkey -p com.webskygroup.opencartmobile 1
adb logcat -c
adb logcat | findstr /I "AndroidRuntime Capacitor chromium FATAL EXCEPTION"

APK: direct installation and QA

Local debug APK
npm run build -- --configuration production
npx cap sync android
cd android
./gradlew assembleDebug

# Windows PowerShell
.\gradlew.bat assembleDebug

The file is normally under android/app/build/outputs/apk/debug/app-debug.apk. Install it on a test device with USB debugging enabled, or use Android Studio. Test login, catalog images, cart, checkout, deep links, offline startup, back navigation, permissions, and notification behavior.

An APK can install and still crash on first launch. Check the launcher activity, package ID, native plugin versions, and adb logcat before declaring a build ready.
Device smoke check
adb devices
adb install -r app-debug.apk
adb shell monkey -p com.webskygroup.opencartmobile 1
adb logcat -c
adb logcat | findstr /I "AndroidRuntime Capacitor chromium FATAL EXCEPTION"

AAB: Google Play release

Release AAB
npm run build -- --configuration production
npx cap sync android
cd android
./gradlew bundleRelease

# Windows PowerShell
.\gradlew.bat bundleRelease

The output is normally android/app/build/outputs/bundle/release/app-release.aab. Create your own release keystore with keytool -genkeypair -v -keystore store-release.jks -alias store -keyalg RSA -keysize 2048 -validity 10000. For a signed release, add a private android/signing.properties file with storeFile=../store-release.jks, storePassword, keyAlias, and keyPassword. The debug variant uses Gradle’s built-in debug key and ./gradlew assembleDebug. Never commit a keystore or signing properties file.

Google Play checklist

  • Increment versionCode for every uploaded build.
  • Use the same package ID and Play signing identity for updates.
  • Confirm the current target API requirement in Play Console.
  • Provide privacy policy, data safety, content rating, screenshots, and store listing metadata.
  • Upload to an internal testing track before production.
  • Test the installed Play artifact, not only a locally signed APK.
Web / PWA

8 · Build and publish the PWA

The production build contains a web manifest and Angular service worker. It needs HTTPS, correct MIME types, cache headers, and a fallback for client-side routes.

Create a production PWA ZIP
npm ci
npm run build -- --configuration production

# Inspect the generated directory
dir www
dir www\manifest.webmanifest
dir www\pwa-worker.js
dir www\ngsw-worker.js

# Optional archive for deployment
Compress-Archive -Path www\* -DestinationPath store-pwa.zip -Force

Host requirements

HTTPS

Serve the entire PWA over HTTPS. Service workers are blocked on insecure origins except localhost.

Root files

Deploy the entire www build. The app registers pwa-worker.js as its current Angular worker. Keep ngsw-worker.js available as the legacy recovery endpoint, alongside index.html, ngsw.json and manifest.webmanifest.

SPA fallback

Unknown application routes must return index.html while real assets keep their original status and MIME type.

Cache updates

After a release, bump the app version, wait for the service worker update, and provide an in-app reload path when required.

Deploy manually to a domain

Extract the ZIP

Deploy the contents of the generated www directory to the target document root. Confirm that index.html is directly in that directory.

Check headers

Verify Content-Type: application/manifest+json for the manifest and JavaScript MIME type for the service worker. Add long cache headers for hashed assets and a short cache for index.html.

Open a clean browser

Use a private window, open the root URL, install the PWA, reload while offline, and inspect Application → Service Workers and Manifest in browser DevTools.

PWA smoke checks
curl -I https://pwa.example.com/
curl -I https://pwa.example.com/manifest.webmanifest
curl -I https://pwa.example.com/pwa-worker.js
curl -I https://pwa.example.com/ngsw-worker.js

# Expected: HTTPS, 200, and the correct content types.
# A 200 HTML fallback for either worker URL is a deployment error.
OpenCart hosting note: an OpenCart rewrite can send an unknown static path to PHP. A dedicated PWA host or subdomain keeps the service worker and SPA fallback predictable. If you must use a subpath, rebuild with the matching base href and scope.
Apple

9 · Build and publish iOS

iOS builds require macOS, Xcode, an Apple Developer account, a bundle identifier, and signing assets. Windows and Linux can prepare the web code, but they cannot perform a local Xcode archive.

Current Capacitor 8 baseline: Node.js 22+, Xcode 26+, iOS deployment target 15.0 or newer, and the Apple toolchain. Confirm the current Capacitor and App Store requirements before submitting.
macOS setup
brew install node
npm ci
npm run build -- --configuration production
npx cap sync ios
npx cap open ios

Register the bundle ID

In Apple Developer, create an explicit identifier that matches the Capacitor app ID. Enable only the capabilities the app uses, such as Push Notifications or Sign in with Apple.

Configure signing in Xcode

Open the ios/App/App.xcworkspace or the project generated by Capacitor, choose the App target, select the team, verify the bundle ID, and let Xcode manage signing or select the approved profiles.

Sync and run on a device

Run npm run build -- --configuration production, then npx cap sync ios. Run on a physical iPhone for camera, push, deep link, keyboard, safe-area, and checkout testing.

Archive

In Xcode select a generic iOS device, choose Product → Archive, wait for Organizer to validate the archive, and resolve signing or privacy manifest warnings.

Upload and test

Use Organizer to distribute the archive to App Store Connect, wait for processing, add internal TestFlight testers, and test the processed build before submitting for review.

Apple release checklist

  • Bundle ID, version, and build number are correct.
  • Privacy usage descriptions exist for every requested permission.
  • App Privacy answers match actual SDK and API behavior.
  • Push notification entitlements and APNs environment are correct.
  • Sign in with Apple, payment, account deletion, and support flows meet review requirements when applicable.
  • Test on a real iPhone and a current iOS version.
Marketplace demo

Demo access and release configuration

Open the live PWA demo and use the demo credentials supplied in the marketplace item description. Do not change the shared demo password or delete demo data.

External services such as Firebase Cloud Messaging, Apple Developer signing, Google Play signing, payment gateways, SMS providers, and hosting may require separate accounts, approvals, subscriptions, or additional costs beyond the item purchase.

Change the native app identifier before release

The template identifier is com.webskygroup.opencartmobile. Before publishing your own branded app, choose a unique reverse-DNS identifier under a domain or organization you control, then keep the same identifier in Capacitor, Android, and iOS. Do not change an identifier after publishing an app update: Google Play treats a changed application ID as a different app, and App Store Connect does not let you change the bundle ID for an existing app record.

  1. Set appId in capacitor.config.ts to your chosen identifier.
  2. In android/app/build.gradle, set both namespace and applicationId to that same value.
  3. Move the Java files under android/app/src/main/java into matching reverse-DNS folders and update each Java package declaration. Update the activity name in android/app/src/main/AndroidManifest.xml and the package_name and custom_url_scheme values in android/app/src/main/res/values/strings.xml.
  4. For iOS, select the App target in Xcode, open Signing & Capabilities, and set Bundle Identifier to the same value. The corresponding project settings are PRODUCT_BUNDLE_IDENTIFIER in ios/App/App.xcodeproj/project.pbxproj.
  5. If push notifications are enabled, register the matching Android and iOS app IDs in your own Firebase project and replace the platform configuration files with your own. Never place the Firebase server service-account key in the app.
  6. Run npx cap sync android and npx cap sync ios, then sync Gradle in Android Studio and verify the Xcode target's bundle ID and signing team.
Publishing rule: choose your IDs before the first store upload and keep them stable for every update. A different ID is a new app identity; it does not update an existing Play or App Store listing.

Branding, logo, colors, and splash screen

Replace the logo and launcher artwork under src/assets, configure accent colors in the active OpenCart store app theme settings, and set the splash mode and image in the environment files. Primary, RGB, contrast, shade and tint come from the store theme API; src/theme/variables.scss provides fallback styles. Run npm run build -- --configuration production, then run npx cap sync android or npx cap sync ios.

Optional server integration

SMS provider, configuration and regional limitations

Actual OpenCart 3 SMS settings with disabled provider and empty private credential fields
OpenCart 3: the supported provider, disabled default, private API-key field and notification templates.

The supplied adapter supports IPPanel REST v1 plain-text SMS only, using POST https://rest.ippanel.com/v1/messages with an Authorization: AccessKey header. This is an optional server-side support-notification adapter. It does not provide generic URL gateways, Twilio, SMS.ir, WhatsApp, pattern-code dispatch or SMS login. Account recovery continues through the registered email.

Regional and account boundary: treat this as an Iran-oriented integration. Before enabling it, confirm with IPPanel that your account can use REST v1, your sender and content are approved, your destination countries are supported and your hosting can reach the provider over HTTPS. International delivery is not guaranteed. The newer Edge/API2 contracts and credentials are not assumed compatible. Provider accounts, sender approval and message credit are supplied and paid for by the buyer.

  1. On OpenCart 3, open the support module’s SMS tab. Select IPPanel REST v1, enter your own API key and approved sender, select the notification events and save. It is disabled until configured.
  2. For either connector, you can instead create DIR_STORAGE/websky_mobile/sms.json using the neutral example below. The private file overrides admin settings; keep the OpenCart storage directory outside the public web root and readable only by the PHP process and server owner.
  3. On OpenCart 4, the bundled catalog adapter uses this private configuration. The OC3 helpdesk admin screen is not included in the OC4 connector; connect the adapter to your server-side support notification integration. A configuration file does not schedule messages.
  4. Replace the two placeholders with your own REST v1 key and approved sender. Keep enabled false until ready; use the JSON boolean true to enable. Do not put this file in Ionic assets, a native target, the PWA or GitHub.
  5. For a live check, use a recipient you control and the country code required by your provider. Check acceptance and delivery separately in the provider dashboard. Do not automatically retry timeouts, which can cause duplicate paid messages.
Private server file · disabled example
{
  "enabled": false,
  "provider": "ippanel",
  "apiKey": "YOUR_IPPANEL_API_KEY",
  "sender": "YOUR_APPROVED_SENDER"
}

The connection verifies TLS, does not follow redirects and never places API keys in URLs. Logs contain only a failure category. Malformed settings, unsupported providers and pattern-code messages fail without sending a request. Full connector-specific instructions and the JSON example are in the package’s OpenCart documentation folders.

The credential-like generic URL example was removed. If any credential in an older package was real, the account owner must rotate it in the provider control panel; source removal does not revoke older copies.

References: IPPanel REST v1 SDK contract and current IPPanel provider documentation.

Buyer responsibilities

Third-party services and separate costs

The item purchase does not include third-party accounts, subscriptions, registration fees or usage charges. The buyer is responsible for creating and maintaining their own accounts and paying all applicable provider fees.
ServiceBuyer responsibility
Firebase / Google CloudCreate a project and matching app configuration. Some services have no-cost quotas; paid plans and usage beyond included quotas can incur charges. Firebase Cloud Messaging itself is currently listed as no-cost. Check Firebase pricing.
Apple Developer ProgramSupply your own enrollment, membership renewal, signing and distribution account for App Store release. See Apple Developer Program.
Google Play ConsoleSupply your own developer registration, applicable registration fee, verification and publishing account. See Play Console enrollment.
Hosting, domain, SMS, maps and payment gatewaysPay the selected provider's hosting/domain renewals, subscriptions, usage charges and transaction fees, where applicable.

Check current provider terms and pricing before enabling an integration. These fees are not collected or covered by the Envato item purchase. Optional integrations remain disabled until you configure them.

Security

Customer sessions and Firebase security boundary

Release 3.2.20 uses two separate credential types. The public store key selects a store's catalog API. It does not authorize access to customer accounts, orders, addresses, downloads, wallet balances or device registrations. A customer signs in with their password or a server-verified provider credential and receives a separate, random bearer token.

CredentialStored wherePermitted use
Public catalog keyPrivate merchant build configuration; visible in the resulting clientPublic store API and catalog access. Treat it as a public identifier, never as a customer password.
Customer bearer tokenClient account state; only its SHA-256 hash is stored in the server databaseOne specific customer. Eight-hour expiry; revoked on logout. Password change/recovery revokes all that customer's tokens.
Recovery request and codeRandom request identifier plus a password-hashed six-digit code on the serverTen-minute expiry, five attempts and one successful use. Requests and verification are rate limited.
Download ticketServer challenge record; short-lived link delivered to an authenticated customerOne authorized download, one use, sixty-second expiry. The account bearer is never placed in a download URL.

Customer authentication example

POST https://your-store.example/index.php?route=extension/api32/account/login
X-Websky-Store: YOUR_PUBLIC_CATALOG_KEY
Content-Type: multipart/form-data

username=customer@example.com
password=THE_CUSTOMER_PASSWORD

Response: {"result":"OK", "customer_token":"REDACTED", "expires_in":28800,
           "customer_id":101}

POST ...?route=extension/api32/account/order
Authorization: Bearer THE_CUSTOMER_TOKEN
X-Websky-Store: YOUR_PUBLIC_CATALOG_KEY

customer_id=101

A token belonging to customer 101 cannot be used with customer_id=202,
or to request an order/address belonging to customer 202.

For OpenCart 4 use the extension/websky_mobile/api_32/ prefix and its native dot method syntax. The client interceptor supplies authentication to both profiles. It sends account credentials only to the configured API. A native OpenCart session identifier, a posted customer ID, a cookie or the store key alone cannot authenticate the mobile customer.

Password recovery

Submit the email address or phone number to account/forgotten. The same generic response is used for matched and unmatched accounts. The connector sends a six-digit code to the matched account's registered email. Submit the returned reset_id, the code, the new password and confirmation to account/resetbyphone. Passwords must be between 8 and 128 characters. Codes are generated using random_int; there is no global code-only lookup and no legacy four-digit SMS reset.

Configure verified social sign-in

  1. Create DIR_STORAGE/websky_mobile/security.json using the supplied server configuration example. Keep this file outside the public document root and restrict its permissions.
  2. Set the accepted Google OAuth web client IDs and Apple bundle/service client IDs. Set the Facebook app ID and server-side app secret. Keep the Facebook secret off the device.
  3. Add the public client SDK identifiers under socialLogin in your private merchant build configuration. The supplied @capgo/capacitor-social-login dependency supports the native/web token flow; complete its provider-specific Android/iOS setup.
  4. The client first obtains a random, five-minute challenge and nonce from account/login_social/challenge, then passes the nonce to the provider and posts the returned ID/access token.
  5. The server verifies the signature using the provider's public signing keys, issuer, audience, expiry, issue time and nonce. Facebook access tokens are also checked through the official debug-token endpoint and matched to the configured app and subject.
  6. Provider identities are stored by provider and subject, not by posted profile fields. An existing password account is never silently claimed by matching its email. Link a provider through account/login_social/link while signed in with that account's bearer token. Facebook identities without an independently verified email require this explicit linking flow.

Provider accounts and application registrations are buyer-specific. The package contains no live provider credentials. Social sign-in is disabled until both the client and server are configured. Raw posted email/name data never signs a customer in.

Firebase: public client configuration versus private sender credentials

Client applicationgoogle-services.jsonGoogleService-Info.plistPublic project/app identifiersCustomer-specific device tokenTrusted store serverVerify customer bearer; bind deviceService-account private key stays hereAuthenticate sender with OAuthSend to authorized device tokensFirebase FCMHTTP v1 deliveryto selected devices

google-services.json and GoogleService-Info.plist identify the Firebase project and app; they are client configuration files, not the trusted sender identity. Configure package/bundle IDs and restrictive Firebase/Google API rules. The service-account JSON contains a private key and must remain on the trusted server outside web-accessible paths. Never place it under src/assets, a native app target, the PWA, GitHub or the buyer ZIP. The server alone obtains an OAuth token and sends FCM HTTP v1 requests.

The supplied Capacitor notification bridge supports the Android FCM flow after adding android/app/google-services.json. On iOS, Capacitor Push Notifications produces an APNs device token; an iOS Firebase Messaging adapter must explicitly obtain the FCM registration token before using the FCM sender. Add the plist to the Xcode target and APNs credentials to Firebase for that adapter. Do not send an APNs token to the FCM endpoint. Push is disabled in the buyer configuration until its platform adapter and provider settings are ready.

Keys, location and release packaging

Use HTTPS for the store and PWA. Account tokens stay out of request URLs and debug logs. Keep Android keystores, keystore passwords, Apple signing keys and server credentials in private storage. The Android manifest requests coarse/fine location and the iOS plist explains when-in-use location; the app requests the current location only when the customer invokes the map picker. Explain this use in your own privacy policy.

The buyer package includes the prebuild configuration generator, PWA worker postbuild script and recovery worker source. It excludes compiled ios/App/App/public, Android compiled web assets, caches, editor metadata, personal Firebase files and signing material. The source defaults to English and uses boolean stock flags. Original geometric illustrations and the OS font stack replace the removed stock/banner/font assets.

Included feature boundary and AI assistance

The core catalog, cart, account, address, order, wishlist, native downloads and customer transaction-balance features use the supplied first-party connector. Separately licensed seller, delivery and wallet mutation add-ons are not redistributed. Legacy SMS-only login and registration adapters are disabled instead of relying on undefined custom OpenCart functions. Integrate separately licensed services through a reviewed server adapter if your store needs those features.

AI-assisted tools were used during development and maintenance, including portions of the source, documentation and demo artwork generator. The third-party provider accounts and a Mac/Xcode signing environment still need buyer-specific configuration.

Operations

10 · Release discipline

Use a small release record for every store change and every app artifact. This makes a failed build or API regression reversible.

Before release

  • Database and file backup completed.
  • Connector endpoint and token verified.
  • Build version and package IDs reviewed.
  • Privacy, signing, and store listing inputs ready.

After release

  • Public API and browser pages return the expected content.
  • APK launches on a physical device.
  • Play internal track or TestFlight build installs.
  • Rollback files, hashes, and release notes recorded.
ArtifactAcceptance evidenceRollback trigger
Connector moduleAdmin setting persists and API returns valid JSON.Fatal PHP error, missing route, or invalid JSON.
APKPackage inspection, install, launcher start, and logcat check.Install failure, immediate crash, or broken checkout.
AABPlay internal track install and core-flow test.Play processing error or signing mismatch.
PWAManifest, service worker, offline reload, and route fallback.Worker serves HTML, stale shell, or broken deep link.
iOSProcessed TestFlight build on a physical device.Archive rejection, launch crash, or blocked review flow.
Support

11 · Troubleshooting

SymptomCheck firstFix
Connector check failsOpenCart version, probe URL, route prefix, and module permissions.Install the matching connector, refresh modifications, clear cache, then Retry the connector check.
API returns an HTML pageRoute spelling, rewrite rules, redirect chain, and token.Call the route directly with curl and inspect Content-Type before changing the app.
Images are brokenImage URL origin, HTTPS, resize route, and CORS.Return absolute HTTPS image URLs or configure the app image prefix to the store origin.
APK installs then crashesPackage ID, launcher activity, native plugin versions, and logcat.Build a fresh artifact, inspect the manifest, and launch it on a real device.
PWA does not installHTTPS, manifest icons, service worker status, and start URL.Fix headers and root placement, unregister the old worker, then reload a clean browser.
iOS archive failsTeam, bundle ID, deployment target, profiles, and missing privacy strings.Resolve the first Xcode error, sync Capacitor, clean the build folder, and archive again.
Changes are invisibleOpenCart modification/theme cache or service-worker cache.Refresh the correct cache, inspect the deployed file/hash, and use a clean browser or device.
Useful diagnostics
# Web response
curl -I https://your-store.example/
curl -sS https://your-store.example/index.php?route=... | head

# Ionic / Capacitor
npx ionic info
npx cap doctor
npx cap sync

# Android
adb logcat -c
adb logcat | grep -E "AndroidRuntime|Capacitor|FATAL EXCEPTION"

# Git hygiene
git status --short
git diff --stat
Reference

Appendix · Commands and official sources

Command map

TaskCommand
Install locked dependenciesnpm ci
Build production web/PWAnpm run build -- --configuration production
Sync Androidnpx cap sync android
Open Android Studionpx cap open android
Debug APKcd android && ./gradlew assembleDebug
Release AABcd android && ./gradlew bundleRelease
Sync iOSnpx cap sync ios
Open Xcodenpx cap open ios

Official references

Document owner: Websky / OpenCart Ionic application team. Update the version matrix, route prefixes, screenshots, and official links whenever the app, connector, Capacitor, or store policies change.
Included source

Editable OpenCart designer files

The OC3 and OC4 connector archives include the original, readable JavaScript and CSS for the module library, embedded editor and application workspace. Open the matching module’s admin/view/javascript/websky-layout-library.js and admin/view/stylesheet/websky-app-workspace.css. In OC4 these are under extension/websky_mobile/ in the repository and under admin/ inside the installer ZIP. No separate source download, decoder or minification step is needed. Source-location and editing instructions are included in each module README.