Within Mobincube there are certain functionalities you can implement. These functionalities are called Actions, and they allow you to perform a task with the screens and content of your App.
The elements of your App, on which you can apply the actions, are the following:
- Image
- Table
- Text
- Tags(for map screens and views)
- Links(for calendar screens and views)
- Interactive areas(on interactive image screens)
- Screen(on the splash screen)
It doesn't matter if content is stored locally or remotely, on a database or not, there are always actions available. But be aware, because not all actions are applicable to every element or screen/view type.
The following are the available actions for you to work with:
- Go to screen
- Call
- Back
- Exit (only in androi)
- Open URL
- Do Nothing
- Submit form
- Video ad
- Delay
- Interstitial
- Share
- Route
- Player
- Play & Stop
- Track
- Privacy dialog
- Request
- Set
Each action has a Destination attribute which specifies how to execute the action or to which content it is involved in.
Go to screen
It opens an existing screen. It allows you to establish the navigation through the App.
Destination -> Name of the screen
Go to view
It opens an existing view(from a data view screen). It allows you to open a "view" in the same data view type screen.
Destination -> Name of the view
Call
It makes a call to a number.
Destination -> Number
Back
It takes you to a former page which has been established as an anchor point.
Destination -> This action has no destination
Exit
It closes the App. (This option doesn't work on iOS devices as is not supported by Apple)
Destination -> This action has no destination
Go to URL
The App opens the Browser with the given URL.
Destination -> The URL
You can use alto other protocols like mailto:// or whatsapp://
Example of whatsapp://send?text=Here%20your%20text%20encoded
Do nothing
The element is "pushable" but executes no action.
Destination -> This action has no destination
Next (only available in the dataview screen)
It shows the next element in a Data View.
Destination -> This action has no destination
Previous(only available in the dataview screen)
It shows the previous element in a Data View.
Destination -> This action has no destination
My Location(only available in the dataview screen and map views)
It changes the location of the map to yours. (don't confuse it with the route action)
Destination -> This action has no destination
Send an SMS(only available in Timers)
It sends an SMS to the destination.
Destination ->Telefone number to send the SMS
Video ad(only available in Timers)
It launches a video ad.
Destination -> This action has no destination
Request(more about request)
Set (more about set)
Submit form (only available if there are Fields in that detail screen)
It allows you to send one or more value of the defined input fields of the form. The input fields can include text or numbers. Each field has a unique reference name(variable name). The fields can be sent to an email, script, Cloud or phone as SMS. This action is described in detail in the Advanced actions article.
Destination -> This action doesn't have a destination attribute, it has a properties attribute in which you define if you want to send the forms data to a script, email, SMS or Cloud. You can even use the input fields that the user fills in on the form as destination data for the "submit" action. This way the user can control, for example, where the values of a form are sent to.
Delay (only in splash screens)
The delay is an attribute of the splash screen which allows you to determine the time, in milliseconds, that passes until the splash screen executes an action. Normally this action will be "Go to screen" with the screen name as destination attribute.
Destination -> Time in milliseconds
Interstitial
Interstitial action will open an Interstitial or full screen ad when the action is performed.
We have 2 main ways to use it: To set an action on an element, for example, the action Interstitial on a image, so when the user clicks the image the Interstitial ad will be open. Or, the delay action on the right panel of the edition menu. That action will open an Interstitial ad in the delayed time specified in milliseconds.
Share
Share is an action usually used on image and text elements. It allows the user to share an element with other apps and people. The available options to share the content are determined by your own device which means that if you have Facebook, Twitter and What'sApp installed on your smartphone, those options will be available to share the content.
The element that has the action assigned will be the one triggering the action once we tap on it. It's on the destination box where we have to place the content we want to be shared.
Inside the destination box we can place:
-> a Text
-> {self} which will share the content of the element triggering the action
-> (field) a field of the data base to be shared (ej. Location, image, phrase...)
* Note: Facebook's application only allows to share URLs, not images or texts.
Route
This action opens the native navigation tool of your device and indicates the user how to reach the provided destination. For the destination of the action, we must indicate the coordinates.
Destination: For the destination we have the next options:
Coordinates + tag --> lat,lng My_destination (don't set any space after the comma)
From databases --> (field)
Player
The Player action allows us to associate to an element where a URL can be opened by the device's default audio player.
When we click the element with the "player" action, our system will display a list with all multimedia applications associated to the audio streams, where we can choose one of them to play the audio file.
We know some users use the player action to play video files and even streaming, this works depending of the OS and player.
Play & Stop
With play action we can play audio files inside our apps. Both local and remote audio files.
It is quite simple to use:
1- We first insert the audio files into the resource manager. You can upload a local stored file or a remote audio file with an URL.
2- We associate the action play to any element in the app, as an image, text or cell... And as a destination we choose the audio file in or resource manager.
Stop action is used to stop an already playing audio. We use it as any action, over any element like text, image or cells. As a destination we choose the audio file that we want to stop from the resource manager.
Check out this step by step video:
Track
The track action will send an evento to Firebase and clevertap with a pair of variable, value separated by semicolon ; .
team;my_team
Calculate distance
This feature is not completely ready yet, but we have created a 'hack' to allow users to use it using online text elements.
To print the distance from the user coordinates to a point in a data base we have to create a online text element and use this URL:
http://scripts.mobincube.com/scripts/distance.php?source={location}&destination=(campoBD)&unit=k
Explanation of each option:
source={location} is the position of the device and uses it at start point.
destination=(BDfield) is the destination taken from the data base field. We must set the name of the localization field in the database inside the brackets.
unit=k is the unit used to make the calculations. We can choose k for kilometers, m for miles and n for nautical miles.