Unlock Real-Time Communication with WebSockets on Appery.io

Introduction to WebSockets with Appery.io

Have you ever wondered how apps send updates in real-time? The magic happens with WebSockets. Today, we’ll show you how to add WebSockets to your apps using Appery.io. This low-code app-building platform makes it easy to create complex apps quickly. Note that this post supports our comprehensive video tutorial and if you are interested in details, you are welcome to watch it.

By following the steps below, you can easily enhance your app with real-time communication features using WebSockets and Appery.io. Exciting, right? Let’s get started!

Setting Up Your App

First, create an empty app in Appery.io. Then, go to the Catalog of Appery.io plugins and select the WebSocket Example plugin.

Before importing it, you can click the link to open its documentation page. You’ll see it contains the code for the WebSocket server. This server needs to be run somewhere. While real applications may use Amazon or Azure, we’ll use CodeSandbox for testing.

Using CodeSandbox

1. Create a new Devbox.

2. Select Node.js Server from the list of backend frameworks.

3. Name your Devbox and set its visibility to “Public”.

4. Install two npm modules: `express` and `socket.io`.

Now, let’s move to the next step.

Setting Up Your WebSocket Server

Copy the server code from the documentation page and paste it into your `index.js` file in CodeSandbox. If everything is correct, the server should start successfully.

Back to Appery.io

Return to the Appery.io project and click Import selected plugins with the WebSocket Example plugin checked. This plugin helps you integrate WebSockets into your app. But first, let’s test it.

Testing Your App

Go to the Project > Routing section and set “WebSocketScreen” as the default page.

Next, navigate to TypeScript > WebSocket and specify the URL of your WebSocket server obtained from CodeSandbox.

Now, run your app in different browsers like Google Chrome, Firefox, and Edge. Enter a test message and click the “Send” button.

Ready! The message should be delivered to all clients in real-time.

Conclusion

Now you’ve seen how to add Websockets to your apps using Appery.io. This post is a companion piece to our detailed video tutorial. The demo app isn’t a finished product but provides a solid template for building your own real-time communication features. Give it a try and unlock powerful networking capabilities in your applications!

Push Notifications with Appery.io Server Code: Watch Our New Tutorial

Hey everyone! The Appery.io team is excited to announce our latest video tutorial on integrating push notifications into your mobile app by using Server Code. 🎉

Push notifications are a powerful tool for engaging app users. With Appery.io, integrating these notifications is simple, even if you’re not tech-savvy. In this video, we are showing you how to add push notifications to your mobile app using Appery.io , a low-code platform that makes app development accessible for everyone.

Our new how-to video covers:

Setting Up Push Notifications: Learn how to configure notifications before sending.

Triggering Custom Actions: See how to trigger popups or other actions when a notification is delivered.

Sending Technical Data: Discover how to pass custom data, like navigation instructions, via push notifications.

Automating Notifications with Server Code: Understand how to send notifications programmatically for real-world use cases.

Targeting Specific Devices and Users: Master the art of sending notifications to individual devices and users.

Highlights from the Video

1. Real-Time Updates: With Live debug, any changes you make in Appery.io are instantly reflected on your mobile device.

2. Custom Alerts: Trigger TypeScript code when a notification is delivered, showing custom alerts or actions.

3. Server Code Integration: Learn to automate push notifications using server-side code.

4. User Targeting: Send notifications to specific users across all their devices by linking user IDs.

Watch Now

Don’t miss out! Watch the full video tutorial and elevate your app’s user engagement effortlessly. Click below to watch the video.

 

 

Want more insights? Check out our YouTube channel for more videos and tutorials.

Don’t forget to like and subscribe. Your support keeps us going!

Easily Integrate Stripe Payments: Step-by-Step Guide

Welcome, developers! Today, we’re thrilled to walk you through the seamless integration of one of the most popular payment systems into your app using our Stripe Shop template. Follow us along as we break down the process into easy-to-follow steps, empowering you to enhance your app’s functionality and user experience.

Step 1: Accessing the Appery.io App Builder To begin, head over to the Appery.io platform and access the App Builder. Here, you’ll find a range of templates to choose from. Select the Stripe Shop template to kickstart your journey towards integrating Stripe payments into your app effortlessly.

Step 2: Exploring Predefined App Pages and Services Upon selecting the Stripe Shop template, take a moment to familiarize yourself with the predefined app pages and services it offers. These include the Products, Details, Success, and Cancel screens, designed to streamline the shopping experience for your users.

Step 3: Leveraging Linked Backend Services Our Stripe Shop template comes equipped with linked backend services, including a database and server code, preloaded with test data. This allows you to test your app’s functionality immediately, providing a solid foundation for further customization.

Step 4: Customizing Your App Now it’s time to make the template your own. Utilize the App Builder’s intuitive interface to customize your app according to your unique requirements. Add new products, update existing ones, and tweak the design to align with your brand’s identity seamlessly.

Step 5: Integrating with Stripe API The heart of your app lies in its ability to process payments securely. With Appery.io’s Stripe Shop template, integrating the Stripe API is a straightforward process. Follow our clear instructions to replace the default Server Code keys with your own, ensuring seamless payment processing for your users.

Step 6: Testing Your App Before deploying your app to the masses, it’s crucial to thoroughly test its functionality. With Appery.io’s Tester app, you can easily test your app on your own device. Simply scan the generated code from the TEST menu, and you’re ready to put your app through its paces.

Ready to take your app to the next level? Dive into Appery.io’s Stripe Shop template today with our free trial period. Experience firsthand the power of low-code app development combined with seamless payment integration.

Need Assistance? If you encounter any roadblocks along the way, fear not! Appery.io offers comprehensive support, including step-by-step tutorials and direct assistance through the Get Help link in the App Builder. We’re here to ensure your success every step of the way.

Stay Informed Stay up-to-date with the latest tips, tricks, and tutorials by subscribing to our YouTube channel. Join our community of developers and unlock your app development potential with Appery.io.

Conclusion: With Appery.io’s Stripe Shop template, mastering Stripe integration has never been easier. Follow these steps, and you’ll be well on your way to building a feature-rich shopping app that delights users and drives business success. Happy coding!

Easy Guide to SMS Confirmation using Twilio — No Stress, Just Success

We are here once again, this time with an easy-to-follow, stress-free tutorial on setting up SMS confirmation using Twilio. And exciting news – we also have a video tutorial for you to follow along with!

How to configure SMS verification for the app registration feature

Remember how we learned to set up SMTP server settings for email confirmations? Today, we’re switching gears to play with Twilio, allowing us to securely verify sign-up attempts via SMS. Cool, right? Let’s jump in!

Step 1: Getting to Know Twilio

Our journey starts with Twilio. Never heard of them? They are experts in sending out SMS verification codes.

  • Head over to the Twilio website and sign up for their free trial account. Once you’re registered and logged in, you can start personalizing your setup. You can either use an existing account or create a new one. I whipped up a new account I like to call SMS Confirmation.
  • Don’t forget to verify your phone number within Twilio. Just drop your number in, await the verification code via SMS, and then pop the received code into the website.
  • You’ll find a few more easy-peasy questions to answer and then hit Get started with Twilio. Congrats, you’re now ready for action!
  • Your Twilio dashboard will display a special phone number. This number is outgoing only and will be used to send confirmation messages to your own app users.
  • While you’re there, note down your Account SID, Auth Token, and your new Twilio phone number.
  • Lastly, ensure that you’ve listed the phone number you are using for testing in the ‘Active Numbers’ list (Phone Numbers > Manage), and that your Verified Caller IDs tab has the verified number ready to receive the authentication codes.

Step 2: Bring On the App Builder

Now that Twilio is all set, let’s put the App Builder to work.

  • Go to the Server Code tab then open the StarterLib library, which was created just for us. We’re planning to send out confirmation SMS, so we’ll need to replace EMAIL with SMS for the confirmation type in the StarterLib script.
  • Next, hop back over to the Twilio console and one by one, copy your Account SID, Auth Token, and Twilio phone number into the corresponding variables on the script in the StarterLib section. Hit ‘Save’ and voila — you’re all set!
  • The moment of truth has arrived. Click TEST on the App Builder page, fill in the sign-up page details, and then wait for the verification code on your mobile device. Once received, drop it into the app, and bingo! Your user is registered.

As you can see, setting up SMS confirmation using Twilio is easier than a walk in the park.

We hope that this short guide will make your app development experience even better.

Remember, we provide a handy two-week trial giving you plenty of time to experiment with our Starter App Template. Plus, you can subscribe to our YouTube channel for even more handy tips.

Thanks for coming aboard this guide, and see you again very soon!

Your Appery.io Team!

SMTP Settings For Confirmation Email Delivery: A How-To Guide

Hello, Appery.io users!

Recently, we released a video introducing our latest Starter App template, sparking numerous inquiries about configuring SMTP server settings for sending confirmation emails. We’re thrilled to announce that we’ve created a comprehensive YouTube tutorial demonstrating the process. For illustration, we’ll utilize the app built from the beloved Appery.io‘s Starter App template:

Below, for your convenience, we’ll additionally walk you through the process step by step for easy understanding.

Step 1. Configuring SMTP Settings: Set up SMTP server settings by enabling 2-step verification in your Google account settings. Then, generate an app-specific password.

Step 2. Accessing App Builder: Head over to the Appery.io App Builder and create a new app using the Starter App template. Go to the Server Code tab and open the StarterLib library.

Step 3. Defining Email Confirmation: In the library, define email as the confirmation type. Enter your email address, paste the app-specific password you just generated, and fill in the from values. Save the changes.

SMTP Configuration Settings

Step 4. Testing the Configuration: Click TEST in the App Builder to ensure everything works smoothly. Fill in the registration details in the app, check your inbox for the verification code, and copy it. 

Step 5. Confirming Registration: Paste the verification code into the app to complete registration. Verify the user record has been added to the app database to ensure accuracy.

Step 6. Final: Log into the app to verify successful registration and explore its features. You’ve now configured SMTP settings for confirmation emails!

Conclusion: That’s it for our guide on configuring SMTP server settings with Appery.io. Stay tuned for our next video where we will show how to set up Twilio for confirmation messages.

Try our Starter App Template and subscribe to our channel for more updates.

Thank you for using Appery.io and Happy Developing!

Your Appery.io Team

Introducing Our New Starter App Template for Your Mobile App

We’re excited to present our latest creation: the Starter App Template. It’s built to be the strong base for making modern mobile apps that users will love.

Starter App Template: Main Features

  • Flexible Design: Works smoothly on all devices for a great user experience.

  • Easy Logins: Choose between traditional or FaceID/Fingerprint logins for security and convenience.

  • Simple Sign-Up: Quick feedback on usernames and passwords to get started easily.

  • Password Recovery: Easy steps to recover access if needed.

  • User Control: Customize settings and privacy to match individual preferences.

  • Language Choices: Supports multiple languages for a global audience.

  • Personalized Profiles: Users can create and edit profiles for a tailored experience.

  • Dark Mode: A comfortable theme option for low-light settings.

  • Secure Confirmation: Double verification via email or SMS for added security.

Who Can Benefit?

This template suits startups and businesses in social networking, e-commerce, health & fitness, education, and more. It’s perfect whether you’re starting big or testing ideas.

Start Building Today

Ready to transform your app development? Explore the Starter App Template now! Create a strong foundation and focus on what users need most.

Don’t miss out—embrace innovation and enhance your mobile app experience with our Starter App template tutorial.

Stay tuned for updates and added features as we continue to improve this template!

Ready to begin?

Updated Restaurant App Template Is Here! Try It!

 

Last October, we released the Restaurant App, which proved to be a huge success. We, therefore, decided to improve and enhance it so that our users were able to get the best results out of a combination of low-code development and a professionally-looking restaurant app. Here’s your chance to see for yourself.

Our updated Restaurant App template includes ready-to-use services and an easy-to-use UI. The template can be recreated within your Appery.io account in just a few simple steps:

  1. Log in to your account, open the Apps tab, and click Create new app.
  2. Select Templates > Restaurant App and hit the Create button:

 

In a moment, you can start testing the app that now features a new stunning UI, the cart, and the internationalization option:

 

The template uses and demonstrates Ionic, Appery.io Database, and Appery.io Server Code. Also, being a template, it offers a great number of customization options so that any small restaurant business owner could adapt it to his business needs and personal preferences.

Those who are only beginning their Appery.io journey and are unfamiliar with our platform can find detailed instructions in an accompanying document.

Please rest assured that you are the creator and you are the only owner of this application (actually, like any other app created with Appery.io).
For more details, you can check our Copyright, Trademark, and Content Ownership section here.

The article also explains how to export your custom restaurant application and publish it so that it can be accessed from any browser on any mobile device.

Please check this link to see what your customized published app can look like.

Please take a moment to try our updated template out and…

Bon appétit!

Minor and Awesome: What’s added with our New Release

Hi everyone!

We are thrilled to announce that last weekend, another Appery.io release successfully went live!

Let’s take a minute and look at the introduced features and check out how useful they are.

These include:

  • A modification to the Reorder component, so it is now easy to move and interact with components immediately after adding them:

That’s all for now, but stay tuned! We have more ideas on how to fulfill all of your Appery.io wish lists!

Baking a Pizza Application à la Appery.io in 5 Minutes

In software development, the four basic functions are represented by the acronym CRUD: Create, Read, Update, and Delete. These facilitate viewing, searching, and changing information. Every application requires the presence of such functions.

If you are up to building a responsive web application in the most cost-effective way, using the Appery.io Pizza sample can be very handy. The sample is a fully functional responsive application—based on Google’s Material Design—to present pizza recipes along with ingredients. It includes create, read, update and delete functions as well as searching and filtering. In terms of components, the application consists of:

  • Appery.io plug-in
  • Database
  • Server-side script

In order to make it live, you need very little in the way of development skills. It takes literally five minutes for a citizen developer to assemble the application out of building blocks as described in https://docs.appery.io/docs/material-angularjs-app-plugin-example. To further perfect the application, you can add more spicy features to fit your tastes as listed in https://docs.appery.io/docs/samples-overview.

Voilà, the Pizza application is ready!

Learn How to Send an SMS with Twilio in 5 Minutes

Twilio is a wonderful communication as a service platform that allows sending SMS messages from your app via a REST API. In this blog post you will learn how to send an SMS message from the Appery.io Server Code in about 5 minutes.

  1. Sign into your Appery.io account (you will also need to have a Twilio account).
  2. Go to the Server Code page.
  3. Server Code has a built-in Twilio SMS plug-in. You just need to add it to your account. Go to the Plugins tab. You will see a list of Server Code plugins:

    Server Code plug-ins

    Server Code plug-ins

  4. Locate the Twilio plugin (Quickly send SMS message with Twilio) and click import. A script called Twilio_SendSMS that sends the SMS will be inserted in the Script panels. A library called Twilio_Base64_library that helps with authentication will also be inserted in the Library panel.
  5. Open the Twilio_SendSMS script:
    var accountSid = ""; //Your Twilio account sid
    var authToken = ""; //Your Twilio account token 
    var twilioUrl = "https://api.twilio.com/2010-04-01/Accounts/";
    
    var from = ""; //Your Twilio number
    
    var to = request.get("to"); //To phone number
    var body = request.get("body"); //Text of the message
    
    var XHRResponse = XHR2.send("POST", twilioUrl + accountSid + "/Messages.json", {
      "body": "To=" + encodeURIComponent(to) + "&From=" + encodeURIComponent(from) + "&Body=" + body,
      "headers": {
         Authorization: "Basic " + encodeBase64(accountSid + ":" + authToken),
         "Content-Type": "application/x-www-form-urlencoded"
      }
    });
    
    Apperyio.response.success(XHRResponse.body, "application/json");

    You need to set the accountSid, the authToken and your Twilio phone number. You can find this information in the Twilio console.

    Twilio SMS

    Twilio SMS

  6. Once you set those values you are ready to test the script. Switch to Script parameters tab.
  7. Add two parameters:
    1. to (that’s the number where the message will be sent)
    2. body (that’s the message)
      These are request parameters into the script (and the API) and are read on lines 9-10.
  8. Switch to Test tab and click the Save and run button.

Testing Twilio SMS API

Testing Twilio SMS API

And this is how it looks on the phone:

SMS message

SMS message

Once you tested the Server Code script, it can be quickly added to your app. Here is a video that shows how to import services into an app. Every Server Code script is also an automatically a REST API. To see the endpoint for this script switch to API information tab. To learn more about Server Code, check our the Server Code YouTube playlist where you will find many short videos.