Development Tip: Using The Bootstrap Grid In Appery.io

Posted: March 16th, 2016Author:

grid

Popular Bootstrap Grid is available in Appery.io’s Bootstrap project as an UI component that can be dragged and dropped to the page. The following steps show how to change grid cell sizes for different screen resolutions:

  1. First open the AngularJS / Bootstrap project and place the Grid component to the page.
  2. Now, if you will look at top right corner of the grid you’ll see a green plus button, this button will add a new row to your grid. If you don’t need to add a new row, but want to add new cells to existing row click on one of the grid cells and then choose GridRow through the breadcrumbs:
    new_cell
  3. A green “+” sign now will add a new cell to an existing row.
  4. You can configure the size for each cell for the four screen sizes. Click on the grid cell and the expand Columns properties in the PROPERTIES to the right of the screen. Type a number from 1 to 12 to define how it will look on the screen:
    cell_sizes

Don’t forget that you can emulate page size directly inside the editor, and when testing the app in browser by clicking XS, SM, MD and LG buttons.

Make sure to check out all of our mobile development tips.

Do you want to build apps fast? Start developing with our trial plan!

Looking To The Future – What Is 5G?

Posted: March 14th, 2016Author:

150518144020-5g-wireless-table-780x439

It doesn’t seem that long ago when the first 4G smartphone hit the market, yet the wireless industry is already preparing for 5G. As each of the four worldwide mobile phone carriers are getting ready to bring us 5G, smart phone chipmakers, and major network equipment companies are joining the race to provide their customers with the “ultra-fast” 5G network.

However there are numerous hurdles which the industry will have to jump over before we will be seeing the 5G symbol on our smartphones any time soon. The reasoning for this? It has yet to be decided what 5G even means, let alone what it will look like when it finally arrives. What we do know is that 5G will soon become a necessity.

Read the rest of this entry »

Development Tip: Validating Forms in AngularJS Projects

Posted: March 10th, 2016Author:

validation

Validating inputs in mobile is very popular. Thanks to AngularJS, it can be quickly completed in one simple and convenient form. In the following example, you will learn how to create a required Input via ng-required directive, and how to resolve this issue in case the Input is not filled (show a message and disable the button):

  1. First of all, there is a model with the following structure:
    • user (Object)
      • name (String)
  2. In the scope, there is a user variable type of user (based on model described in step 1)
  3. init function of the scope has a single line of code:
  4. On the page, there is a HTML component with a Container property = form (there is no such option in a dropdown so simply type it).
  5. Inside the HTML component, there are Input and Text components.
  6. Set the Input components to the following properties:
    • ng-model = user.name
    • name = userName
    • ng-required = true
  7. For the text component set it to the following:
    • Color = assertive
    • text = Required (or any text you want)
    • ng-show = myForm.userName.$error.required
  8. And finally, place the button below the HTML, and add a ng-disabled property with myForm.userName.$error.required value.

If you try to remove text from the input you will see that button becomes disabled, and a Required message will appear. This way you can produce more complex validations according to your needs. You can see how the example above is built by creating an app from this backup.

Make sure to check out all of our mobile development tips.

Do you want to build apps fast? Start developing with our trial plan!

Development Tip: Adding Custom Logic to REST API Invocation

Posted: March 2nd, 2016Author:

editing_mapping

This blog post shows how to add a custom logic to a REST API invocation for jQuery Mobile apps.

You may often need to modify data for a services request or a services response. You may want to launch a dedicated JavaScript function to do this. This is useful when you need to rewrite the response data with filtered/edited values, instead of doing this each time for each mapping. For example, your service response has an unneeded first value that you want to remove from the response:

  1. Add new Run JavaScript action for Success event of your datasource.
  2. Using the drag and drop, move this action to the very beginning, so the Mapping action will be right to the Run JavaScript. This way, it’s guaranteed that the JavaScript code will be executed before the mapping.
  3. Click on Run JavaScript action and write your code. You have a data parameter in this JavaScript function – that is your response value.
  4. Write your custom logic to modify the response data. For example, to remove the first item of the response array (works only for arrays, not for JSON objects) use the following code:

Read more about Mapping in jQuery Mobile projects here and make sure to check out all of our mobile development tips.

Do you want to build apps fast? Start developing with our trial plan!

Development Tip: Quick Android App Debugging On The Device With Chrome

Posted: February 24th, 2016Author:

chrome-debuggingDebugging your JavaScript apps that are made with Appery.io can be performed in a several ways, but today we would like to share with you another method. This approach has been available before, but for a some reason not many people know about it. The flow is looks really simple:

  1. Connect the device to a PC with a cable.
  2. Export the Appery.io app as an Android binary (.apk).
  3. Scan the QR code to install the app.
  4. Launch Chrome and open the app on the device.
  5. That’s all! Now you have a really quick debugging tool to test your app with.

You should do a few steps to makes it work, but luckily they are not complicated and you can be ready-to-go in a few minutes.  A detailed guide about this feature and how to set it up you can found here.

Read more about the testing and debugging options here and make sure to check out all of our mobile development tips.

Do you want to build apps fast? Start developing with our trial plan!

Changes Needed: New AngularJS Push Plug-in Implementation

Posted: February 23rd, 2016Author:

pushregdeviceimpl
The following relates to the projects, which have already been imported as AngularJS Push Plug-in: by improving the AngularJS Push Plug-in, its PushRegisterDeviceImpl JavaScript file was modified. In order to update this file you need to replace its content with the updated one here. Alternatively you can simply re-import the plug-in itself,  making sure that you have removed all of the related assets before doing so. This depends upon the Ionic and Bootstrap projects.

If you experience any problems with new implementation do not hesitate to ask our support team to help you.

Is Your Company Ready for the Upcoming App Explosion?

Posted: February 22nd, 2016Author:

It’s fair to say that we are about to experience a significant app explosion in the enterprise, and most organizations won’t be ready for it. According to Gartner the average enterprise will develop 1400 mobile apps by 2024!  Since most of these apps will be custom, the total number of apps will be in the millions, dwarfing the explosion we’ve experienced in consumer apps over the last few years.   Most IT leaders are already feeling pressured from the businesses and if you haven’t yet, you’re about to….

In this podcast and post, I explain the reasons for this explosion and what enterprises should do to be ready. Review Appery.io’s infographic or download Apperian’s Enterprise Mobile App Trends Report to learn more.

Here is the full podcast

Read the rest of this entry »

In Case You Missed: Getting Started with App Builder for jQuery Mobile Apps

Posted: February 22nd, 2016Author:

This is the second webinar in our 2016 webinar series and introduces you to the App Builder and how to build apps with jQuery Mobile.

In this video you will learn:

  • How to create a new jQuery Mobile app
  • About various views inside the App Builder
  • How to use the Cordova Geolocation API to get the current device location
  • How to invoke the Uber Product API from Server Code
  • How to integrate the Uber API into the app
  • How to test and share the app

Check out this video now:

To learn more how to build apps fast, go to our YouTube channel.

Development Tip: Appery.io Push Notification Flow

Posted: February 17th, 2016Author:

logo-localpushWhen implementing logic with a push notification function it is a good idea to understand how it works under the hood, so when you send a push notification using a REST API, Server Code, or via the web console, the flow should look like this:

  1. Appery.io push service receives and processes the request to send push.
  2. Then, Appery.io passes the message onto Google or Apple servers.
  3. Lastly, push notification providers (Google or Apple) delivers the message to a device.

Because the push notification was delivered by a third party (not by our service), the Appery.io platform can’t provide details on whether or not the push notification was delivered, and the reasons for this. However, we can provide certain error notifications along the lines of the device was not found. The same basic flows are valid for all push notification services (not only for Appery.io).

Read more about push notification in documentation and make sure to check out all of our mobile development tips.

Do you want to build apps fast? Start developing with our trial plan!

Java SDK is Now Part of API Express

Posted: February 16th, 2016Author:

With one third of developers using Java, we have now added an Enterprise Services Java SDK to our API Express platform to increase the performance and customisation of your app. Our Java SDK is composed of:placeit-2

  • Enterprise Service Java API – this allows you to use appery.io features from the Java code
  • Enterprise Service Maven Plugin – allows you to verify, compile, test, package and deploy service code to API express.
  • Enterprise service test – allows you to write unit tests for the service.
  • Enterprise Service Templates – provides sources and templates for you to use.

We have made this addition to our API Express to allow you, the user, to increase customisation. Before you were limited to what kind of services you could build with the Service App Builder Graphical tool. You are currently unable to connect to the LDAP, and when you can you will most likely be unable to connect to some proprietary enterprise systems. Therefore, Java SDK allows you to build a java service of any complexity due to our additions of: Apache Camel and Spring framework, java programming language and it’s third party libraries, frameworks, and tools, as well as the Enterprise Services Java SDK to enable you to reach our appery.io features including push notifications, security, appery.io database and server code, data sync, and many more.

Read the rest of this entry »