This is a simple example where we describe how to sync blog entries between devices. To develop this case you should:
- design simple model with two fields
- deploy our simple app on test enviroment
- configure your app on the mobile
- use our API to sync your model between devices
Create your App
Start working with the Mobeelizer. Create your FREE account.
Let's design your first App. Open the Mobeelizer App Designer and login with your account. Then, press CREATE NEW APPLICATION button and insert it's name blog.
Design your App Schema
In your applications designer panel enter Models section on the left. Then create new model Blog and add two text fields to it.
Deploy your App into the test environment
Deploy your app into the test environment using DEPLOY TO TEST button.
Get the Mobeelizer SDK
Prepare plain iOS poject, get the Mobeelizer SDK, unzip it and add it as a framework to the project
Get your App definition
Download App definition and save it into the project directory as "application.xml".
Confligure your App
Create "Mobeelizer.plist" file and configure your App.
Want to know what these properties mean? Check the documentation for detailed description.
Create Blog object
Create class "Blog" with "YourModelPrefix" prefix.
Looking for information how to convert schema definition into objects? Check the documentation for detailed description.
Use the Mobeelizer SDK
Open Application Delegate and add the messages for creating and destroying Mobeelizer.
Before any object will be stored the device must be authenticated.
Once you are logged in you have access to the database.
Let's create a Blog object and store it in the database.
So we have stored our very first object. Let's check it.
Is our Blog entry shared in the cloud? It will be soon.
Remember to logout before closing the application.
Run the App on the device
That's all. Compile your App and deploy it to the device. Then create a blog entry and sync it with the cloud. It will be visible by other devices.