Mobile Timer/ Stopwatch

Mobile Timer/ Stopwatch

  

Does anyone know whether it is possible to implement a timer into a mobile application. A clock which count down from 24h to 0 for example?

Kind regards,


Martin

I cannot see why not?

at least you can implement something with javascript.

it really depends how realtime you want to have it.

We made something back in the day and it's pretty accurate on the milliseconds.


and google tells me there is an cordova-plugin for it.



Where did you find it ?

I guess my skill-level on this matter is way to low. I really don't know how to create the plugin in a way that it works on OutSystems. Do you have any example or video on how to implement a cordova plugin?

It Does help! Only one thing left. It doesn't work in a mobile app, the javascript doesn't.. Any ideas?

Hi Martin,

If you end up using the cordova plug-in like J. mentioned, you can take a look at this to help guide you:

https://www.outsystems.com/learn/lesson/801/plugins/

Justin

This is what i've got right now for an application. It works on a webapp, but not on a mobile app in P10

Martin Rozeboom wrote:

This is what i've got right now for an application. It works on a webapp, but not on a mobile app in P10


Hi Martin,

When i implementation to my application, it's look like image below:


Do you know how to solve this error? 


Thanks,

Anggun Nurani

Hi Anggun Nurani,

The way you use JavaScript in mobile is different.

You can now easily add required JavaScript libraries to a module (check the folder Scripts on the Interface tab) and you can call JavaScript directly from Client Actions (using the JavaScript tool).

You also have screen lifecycle events that you can handle in order to react to page navigation, rendering, etc... If you haven't yet, I recommend you go through the online training specific to Mobile Apps, in particular pay attention to the Programming Model of OutSystems Mobile Apps.