If you use a WordPress membership plugin like Memberpress, Restrict Content, Paid Memberships Pro, WooCommerce Memberships, and almost any other, you can build a mobile app for iOS and Android using AppPresser. (Updated for AppPresser 4)
AppPresser has a more robust and customizable WordPress membership app builder than any other platform. Here are some things you can do:
- Allow members to login to the app with the same user/pass they use on your site
- Update content in the app through WordPress
- Protect content based on membership level (with user roles)
- Allow free registrations, or sell memberships through the app with in app purchases
- Everything is synced with your WordPress site: users, payments, expiration dates, and protected content
- A paid account at apppresser.com
- A membership plugin activated on your site
- The AppPresser plugin and theme installed
- Any other required AppPresser plugins based on your particular app
A membership plugin restricts access to website content based on membership level, and your app can do the same. If you have a membership site, you can create a mobile app that shows content based on what each member has access to.
The end result is that members only content will be hidden from your app users unless they login, and have the appropriate membership level.
FYI: This same stuff works with LMS plugins such as LearnDash, and social plugins like BuddyPress as well.
How it works
The membership functionality in your app will work just like it does on your website. For example, if you have some protected pages, your app users will not be able to access those unless they have the appropriate membership level. They will be required to login through the app before they can see any protected content.
All payments, registration, content protection, and other features of your membership plugin will continue working as usual. AppPresser only handles the display of your membership pages, it does not change how it works, or handle any back-end processes.
Here’s a demo video, continue reading the article below for more details.
Create Your Login and Registration Pages
To build your app, first you need an AppPresser app with login and (optionally) registration enabled. You can do this in the app setup wizard.
Make sure you have setup the AppPresser plugin and JWT authentication as described in our documentation.
This will add a login/registration page to your app. It is native to the app, it does not automatically add custom registration fields from your site.
Registration is not technically necessary, but allowing users to at least sign up for a free level is a great way to generate more leads for your premium membership. Allowing free users to register through your app is a great way to widen your audience. AppPresser has a built-in API based registration form that has email validation.
Setup Your Membership Plugin
Next, you will need your membership plugin installed and configured. Here are instructions for a few plugins we support.
- Restrict Content Pro installation instructions
- Paid Memberships Pro
- MemberPress docs
- WooCommerce Memberships
You will need to setup your plugin and membership levels before continuing.
Setup the pages you want to be protected with your plugin. Protecting content in the app will work differently than on your site, but you need to have content protected with the plugin first.
For example, in RCP (Restrict Content Pro), there are options at the bottom of the page edit screen that allow you to restrict based on certain conditions. I am going to require at least the “Silver” membership to view a protected video.
Other plugins have similar options to protect content.
Free content is not required, but it’s nice to give people something to see before they commit to registering. Keep in mind that if you sell memberships, you will need to use in app purchases in the app, which we’ll cover later in this article.
Protect Content in The App
Protecting content in the app works differently from your website, but there is some overlap.
You have a few different ways to protect content, we’ll cover those here.
Embed Your Site Page
The simplest way to protect content is to embed each page you want in the app using an iframe. This allows your membership plugin to handle all of the authentication, and it works out of the box.
The downside of this method is that iframes can be a bit clunky and slow inside an app. We recommend using API based content whenever possible, which we’ll cover below.
To add this type of page to your app, create a new custom page and choose iframe page. Add your page url, then save and add it to your app menu. See our documentation for help.
Protect API Based Content
AppPresser apps use the WP-API for WordPress posts and pages whenever possible. It’s faster and more native, the downside is that custom plugin content and interactivity (like forms) do not work.
If you only have text, images, and/or media that you need to display, we recommend this method.
Note: not all membership plugins work this way, so you may need to test to determine the best way for you.
To use this method, add a new custom page in your app customizer. You can choose the Custom Layout option and select one of the templates that has WordPress posts in it, and customize as necessary. You can also choose the WordPress posts custom page, either way you are using API based posts. View our documentation for help.
If your membership plugin supports API based content protection, it should automatically protect your posts.
Hide/Show Content for Logged In Users
If you have a simple membership that only requires a user login to view content, you can just hide the page in the app until someone logs in.
To do that, visit the AppPresser app customizer, go to your menu, and add a class of loggedin to the menu item you want to protect.
This method works for any type of page.
Protecting Content By Membership Level with User Roles
A more granular way to protect content in the app is by user role. Many membership plugins use subscription levels, you can do the same thing in the app by assigning a user role to a certain subscription level.
For example, if a member is on the Gold level, use the User Role Editor plugin to assign them a gold-level user role. Then in the app, you can use the gold-level role to hide and show menu items and page content.
In this example, watch how menu items appear and disappear based on the new-member user role assigned to this member.
To do this in AppPresser, you just have to make sure the user has the proper role using the User Role Editor plugin.
Next, add the user role restriction to the menu item or page content you want.
Now the member can’t see that page in the app unless they have the role of “New Member.”
Protect Non-WordPress Content
With AppPresser, you can create custom pages that do not connect to WordPress. For example, you can embed text, images, and media in the app that can work offline.
To protect this type of content, you can hide/show based on login status as described above, or use custom tags in the HTML content of the page.
Taking Payments In Your App
Taking payments for premium memberships is possible using in app purchases.
If you take payments through your app, you are required to use In App Purchases, which gives the app stores a 15-30% commission. This is an app store requirement, your app will be rejected if you sell memberships on your site, but you do not offer an in app purchase option.
Your customers can still purchase on your website and get access to the app. The app stores require that an in app purchase capability is available, but that doesn’t mean all customers need to use it.
How In App Purchases Work
You must create in app purchases in the app stores, then set them up in the app.
When someone purchases through the app, the payment goes through the app store, not through your website. AppPresser has extra functionality that will create a user on your WordPress site, record the purchase, and log them in.
Depending on your situation, you can choose to add the user to a membership level, give them access to a course, or just create them as a normal subscriber on your site using our custom plugin integrations. Some custom coding may be required.
When a user cancels their subscription, AppPresser will remove their access.
In app purchases are not available on all plans, and require extra setup, please see our documentation for instructions. Only one subscription is supported out of the box, multiple subscriptions require custom development.
Summary and Next Steps
AppPresser can help you create a mobile app for iOS and Android that your members can use to login and view their protected membership content.
With a variety of ways to protect your content and integrate with your site, you can create the app just how you want it. Integrate almost any membership plugin, allow for free registration, paid access, include in app purchases, and more.
To get started, choose a plan on our pricing page, and start creating your membership mobile app today.