Skip to content
ThemesIonic — home
WordPress Tutorials

The WordPress Mobile App: What It Needs From Your Site

The mobile app is a writing and moderation tool. Connecting a self-hosted site depends on three core features, XML-RPC, the REST API and Application Passwords, and on HTTPS, which Application Passwords require.

Updated 5 min read beginner

The app is only as good as its connection: a self-hosted site has to expose XML-RPC or the REST API, and Application Passwords only work over HTTPS. Most "the app won't log in" reports come down to one of those being switched off, not to the app or the password.

Which app, and which kind of site

Automattic publishes two apps for iPhone and Android, WordPress and Jetpack. Both connect to sites hosted on WordPress.com and to self-hosted WordPress, the software you install on your own hosting. The WordPress.com vs WordPress.org difference matters here. A WordPress.com site works with the account that owns it. A self-hosted site has to accept a remote connection, and some features, such as stats, come from the Jetpack connection rather than WordPress itself. Which app carries which feature has changed more than once, so go by the current store listing rather than an old feature list.

The rest of this article covers the self-hosted case. That is where connections fail, and where you can actually fix something.

What core WordPress gives an app

A self-hosted site offers apps three ways in:

  • XML-RPC (xmlrpc.php). The original remote-publishing interface. It accepts a username and password with every request, which is why it attracts brute-force traffic and why security tools often disable it. Code can switch it off with the xmlrpc_enabled filter, and the app then gets XML-RPC services are disabled on this site.
  • The REST API (/wp-json/). The modern interface. It does not accept your normal password. An outside app needs an application password.
  • Application Passwords. These are per-app credentials, created under Users → Profile → Application Passwords, or by the app sending you to the Authorize Application screen. They work for the REST API and XML-RPC, never for the normal login form, and each one can be revoked separately.

The authorize screen is what you see when an app asks to connect this way. It reads "An application would like to connect to your account." and offers Yes, I approve of this connection or No, I do not approve of this connection. Approving creates an application password and hands it back to the app. If the app doesn't receive it automatically, WordPress shows it once, with the warning "Be sure to save this in a safe location. You will not be able to retrieve it."

The HTTPS rule most guides miss

Application Passwords are only available when wp_is_application_passwords_available() returns true. By default that requires is_ssl() to be true, or the environment type set to local. A production site on plain http:// doesn't qualify. It also fails behind a proxy or CDN that ends HTTPS before the server, if WordPress isn't told the original request was secure.

On such a site the profile still shows the Application Passwords heading, but instead of the Add Application Password form it says: "The application password feature requires HTTPS, which is not enabled on this site. If this is a development website, you can set the environment type accordingly to enable application passwords." (checked on a WordPress 7.1.5 test install served over plain http). And an app that sends you to the authorize screen gets Cannot Authorize Application with "Application passwords are not available."

Users Profile, Application Passwords section: explanation text, New Application Password Name field and the Add Application Password button.
WordPress 7.1.5 with WP_ENVIRONMENT_TYPE set to local. Over plain http in production the same section shows only an HTTPS notice instead of this form.

The fix is a real certificate and an https:// site address, as in fixing the "Not Secure" warning, not a workaround. Setting the environment type to local is meant for development copies only.

What the app needs, and what blocks it

What the app needs Core feature How to check it is on Common block
Log in with username and password XML-RPC Opening /xmlrpc.php in a browser shows "XML-RPC server accepts POST requests only." That proves the file is reachable, not that logins are allowed Security plugin or xmlrpc_enabled set to false ("XML-RPC services are disabled on this site."); host or firewall returning 403 for xmlrpc.php
Read and write content REST API /wp-json/ returns JSON, not an error page or HTML Plugin restricting the REST API to logged-in users; WAF rules; see REST API unexpected result
Connect without your real password Application Passwords Users → Profile shows the Application Passwords section with New Application Password Name and Add Application Password A security plugin filtering wp_is_application_passwords_available to false, which removes the section entirely
Application Passwords allowed at all HTTPS (is_ssl()) or environment type local /wp-json/ lists application-passwords under authentication Site on http://; HTTPS ended at a proxy that WordPress isn't told about
Get the password to the app Authorize Application screen The app opens the screen with "An application would like to connect to your account." "Your website appears to use Basic Authentication, which is not currently compatible with application passwords." on password-protected staging sites
Repeated requests not throttled None (server side) Login works once, then fails Rate limiting on xmlrpc.php or /wp-json/, see 429 Too Many Requests

If you use a security plugin, look in its settings for options named after XML-RPC, the REST API or application passwords before blaming the app. Choosing a security plugin explains why these switches exist. Turning XML-RPC off is reasonable if every app you use can connect through the REST API with an application password.

What the app is good for

The app is a good tool for writing, quick corrections, comment moderation and uploading photos from the phone. Full-size phone photos are large, so image optimisation matters more when you publish from a phone, not less. It is not a mobile wp-admin: installing plugins, page builder layouts such as Elementor or Divi, store administration and anything involving files or the database belong in a desktop browser.

How the site looks to visitors on a phone is a theme matter, covered in mobile display issues. No app setting changes it.

Keep the connection small

A signed-in phone is a standing connection to your site. Connect with the lowest role that does the job. An Editor can write, edit and moderate, but can't install plugins or add users. Name each application password after the device, for example "iPhone 15", so you can tell them apart in the list.

Verify

  1. Open /wp-json/ and confirm application-passwords is listed under authentication.
  2. In Users → Profile, confirm the Application Passwords section has the Add Application Password button.
  3. Connect the app, then check that a new entry with the app's name and a Last Used date appears in that list.
  4. If you lose the phone, click Revoke on that entry. The app is cut off and your real password stays unchanged.

Frequently asked

Yes. Automattic publishes an app called WordPress and a separate Jetpack app for both platforms. Both can connect to WordPress.com sites and to self-hosted WordPress. Which features sit in which app has changed over time, so check the current store listing before relying on one.
Usually the connection is blocked, not the password. The app talks to XML-RPC or the REST API, and security plugins and hosts often switch those off. An app that uses Application Passwords also needs the site on HTTPS, or WordPress reports that application passwords are not available.
No. It is a separate 24-character password generated under Users → Profile → Application Passwords. It works only for API access (REST API and XML-RPC), cannot be used on the normal login screen, and can be revoked on its own without changing your real password.
Tagged Security

Related guides