=== App26 Mobile App ===
Contributors: Masoud Nasrollahi
Donate link: https://360dialog.ir
Tags: woocommerce, mobile app, chat, sms, customer support
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to the App26 mobile app: support chat, order SMS, satisfaction surveys, and realtime revisions.

فروشگاه ووکامرس خود را به برنامه موبایل App26 متصل کنید: پشتیبانی چت، پیامک سفارش، نظرسنجی‌های رضایت‌سنجی و بازبینی‌های لحظه‌ای.

== Description ==

**App26 Mobile App** is the official WordPress bridge for the App26 store manager mobile application.
برنامه موبایل App26 پل رسمی وردپرس برای برنامه موبایل مدیریت فروشگاه App26 است.

After you install this plugin on the same WordPress site your App26 app connects to, you get:

* Storefront support chat widget
* Staff replies from the App26 mobile inbox
* Order status SMS through your existing SMS plugin panel
* One-time customer satisfaction (CSAT) survey links
* Lightweight realtime revision endpoints for the mobile app
* Dashboard bundle endpoint to reduce WooCommerce API round-trips

= Requirements =

* WordPress 6.0+
* PHP 7.4+
* WooCommerce
* An App26 mobile app account connected with an Application Password that can manage WooCommerce

= Admin screens =

All settings live under **App26** in wp-admin:

* Overview
* Support (chat widget)
* Customer satisfaction
* SMS settings

= SMS =

If a compatible SMS plugin is installed (WP SMS, Persian WooCommerce SMS, FarazSMS, Melipayamak, and similar), open **App26 → SMS settings**, enable sending through the site SMS panel, and optionally edit the order-status message template.

= Privacy =

This plugin stores chat conversations, satisfaction responses, and SMS-related options on your WordPress site. Push device tokens are stored when the mobile app registers them. The plugin does not send store data to App26 servers by itself; the mobile app talks to your site over the WordPress REST API.

== Installation ==

1. Upload the `app26-bridge` folder to `/wp-content/plugins/`, or install the ZIP via **Plugins → Add New → Upload Plugin**.
2. Activate **App26 Mobile App**.
3. Make sure WooCommerce is active.
4. Open **App26** in wp-admin and configure Support, Satisfaction, and SMS.
5. Connect the App26 mobile app to your site with an Application Password.

== Frequently Asked Questions ==

= Do I need to paste chat code into my theme? =

No. After activation, the support widget loads on the storefront automatically when enabled.

= Which SMS plugins are supported? =

Common gateways such as WP SMS, Persian WooCommerce SMS, FarazSMS, Melipayamak, and SMSWOO are detected automatically. You can also hook custom providers with the `app26_sms_provider` and `app26_sms_send` filters.

= Will App26 send duplicate SMS? =

If your SMS plugin already sends WooCommerce order notifications and “force send” is off, App26 will not send a second message. Enable force send only when you need App26’s template as well.

= Does this replace WooCommerce? =

No. It adds REST helpers and storefront features used by the App26 mobile app.

== Screenshots ==

1. App26 mobile dashboard with sales and order overview
2. Dark-mode analytics cards for users, sessions, and engagement
3. Orders list with status, customer, and amount
4. Products catalog with stock status and search
5. Product detail screen with attributes and price
6. App settings: theme, language, Analytics, support, and CSAT

== Changelog ==

= 1.3.9 =
* Fix i18n: menu labels use string literals for WordPress.org checks

= 1.3.8 =
* WordPress.org review fixes: enqueue CSAT assets, document Expo, trim tags, remove bundled translations

= 1.3.7 =
* Mobile chat panel and profile form now open full-screen

= 1.3.6 =
* Returning chat visitors no longer flash the profile form while the widget session loads

= 1.3.5 =
* Manager test survey link: enter a mobile number and get a one-time CSAT URL

= 1.3.4 =
* Fix product price labels showing raw `&nbsp;` in support chat

= 1.3.3 =
* Authenticate WooCommerce API keys on App26 routes (not only /wc/)
* Query-string auth fallback when hosts strip Authorization headers

= 1.3.2 =
* Restore Authorization from alternate headers when hosts/security plugins strip it
* Clearer REST auth errors for missing login vs missing capability

= 1.3.1 =
* Reliable Persian labels for Support and other App26 admin menu items
* Load translations earlier so menu titles appear correctly
* Safer chat widget mount when the document body is not ready yet

= 1.3.0 =
* Renamed top-level admin menu to App26
* Added shared admin UI theme and overview dashboard
* Added SMS settings screen and REST controls
* Message templates for order-status SMS
* WordPress.org packaging (readme, license, i18n)

= 1.2.1 =
* Chat, satisfaction, push, and SMS bridge improvements

== Upgrade Notice ==

= 1.3.9 =
Fixes WordPress.org automated i18n check for menu labels.
