$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>android - Setting up WordPress client and server|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

android - Setting up WordPress client and server

matteradmin8PV0评论

I'm new to WordPress, so this may be a newbie question. I am trying to setup WordPress on my own server and want to also have a mobile app to talk to it.

I found the following two resources:

  1. Wordpress web app:
  2. Open Source WordPress Android app:

The Android app's Google play page says: WordPress for Android supports WordPress and self-hosted WordPress sites running WordPress 3.5 or higher. I want to ask whether this combination will work, and if anyone has tried to setup these two parts to communicate over SSL.

Edit:

To be more clear, I need an app that I can modify and will work with the open source WordPress web application.

I'm new to WordPress, so this may be a newbie question. I am trying to setup WordPress on my own server and want to also have a mobile app to talk to it.

I found the following two resources:

  1. Wordpress web app: https://codex.wordpress/Installing_WordPress
  2. Open Source WordPress Android app: https://github/wordpress-mobile/WordPress-Android

The Android app's Google play page says: WordPress for Android supports WordPress and self-hosted WordPress sites running WordPress 3.5 or higher. I want to ask whether this combination will work, and if anyone has tried to setup these two parts to communicate over SSL.

Edit:

To be more clear, I need an app that I can modify and will work with the open source WordPress web application.

Share Improve this question edited Dec 26, 2018 at 22:00 Krzysiek Dróżdż 25.6k9 gold badges53 silver badges74 bronze badges asked Jan 20, 2017 at 21:45 JakeJake 1012 bronze badges 4
  • Hi, do you mean accessing admin panel and posting new content by talk to it? If yes, then you can download the official wordpress application for android phones from google play, and use it to achieve this. – Johansson Commented Jan 20, 2017 at 22:14
  • Not just accessing admin panel. I need to customize the mobile application, so the APK from Google Play won't do. I need an app that I can modify and will work with the open source wordpress web application. – Jake Commented Jan 20, 2017 at 22:18
  • So you need a website for example like facebook, and an app like facebook app? In both cases yes it is possible. However, if you want to customize your app, you need to have deeper knowledge about how to communicate with your website using JSON and admin-ajax. – Johansson Commented Jan 20, 2017 at 23:33
  • Look into using Wordpress' REST API – J Garcia Commented Oct 5, 2017 at 3:32
Add a comment  | 

1 Answer 1

Reset to default 0

The easiest way to do this is this...

Install a PWA plugin. Here is a free one... (No Pro Needed) https://superpwa/

Now, if you want to make it onto the Stores, you will want to write a wrapper (or buy one). There are many options for this, but they tend to be custom.

A cordova wrapper is one of the best options for native wrappers with high quality results. They are generally customized extensively. There are cheaper, pre fab type options available as well. (Some rumors of bans for cheap wrappers continue to exist, most in the field have reported these have stopped by the worse offender, Apple who has slowly (and now completely) joined the PWA bandwaggon).

I recommend PWA's as a consultant. They make sense. PWA's offer ALL the features of traditional Apps with the same code that runs your site. A wrapper + PWA offers even more and can provide very good control over the offline content loading. Push Notifications are available for both. The rest is just Gravy added to the feature list.

STORE ACCESS: I believe you may put a PWA app on the Microsoft store. The Android/Apple stores tend to require a wrapper. A wrapper is essentially a browser in a window with an Icon.

For a long time, Apple would kick people from the store if the wrapper was not substantial improvement over the web experience. They now tend to be much more lenient as long as it works well.

There are a few companies that make pre-existing themes that go into wrappers. You can also try these if you want the store. This is a much better, and cheaper, way to approach app development and one I specialize highly in.

REST API: The rest API as specified in the question can also be integrated but should not be needed for this approach.

PUSH NOTIFICATIONS: Push Notifications are available and requires another free app and custom code to integrate with the system you build. There maybe a service fee for insane amounts of push notifications. A lot of Free options are also available, but integration tends to cost.

My OVERWHELMING conclusion: Overall, the PWA+Wrapper approach offers everything if you want the store presence. I love using the same logic that I use to build the site in the app. No need to duplicate efforts. Then I customize the site experience to be mobile friendly. Finally We build a wrapper to consume the website. We can offer offline access, notifications and store access cheaply with this approach. It offers you a single code base and user experience that is seem less with reduced development costs of a dedicated app for multiple systems.

COMPATIBILITY: SuperPWA's degrade nicely. Apple, Google, Firefox and Microsoft all fully support PWA's now. Any report otherwise is out of date.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far