WebOS - Web application - screensaver turns on - webos

Recently I am trying to make a WebOS application for my TV for our application https://castit.nl . It is a web hosted application, therefore all of the logic is on my server.
But the problem is - the application (digital signage that it is) is covered by the screensaver within a few minutes.
There needs to be an API endpoint somewhere - within JavaScript to turn off the screensaver.
I found this article:
https://blog.illixion.com/2022/10/webos-prevent-screensaver/
But this does not work. It is an unsupported API endpoint says the console, and for real because it is not in the documentation:
https://www.webosose.org/docs/reference/webosservicebridge-api/webosservicebridge-api-reference/
Please help as this is really a frustrating thing.

After looking for this for many hours, this seems to be impossible to do.
It does not exist in any API endpoint.

Related

How to perform API test for windows desktop applications (WPF)?

I am a complete beginner working as a tester, I have found multiple resources in google about web APIs and its HTTP methods (GET,PUT,POST,DELETE). However I am confused what is the equivalent of these 'HTTP methods' for a windows desktop application? How do one actually perform a Windows application API test? I have no experience testing windows application APIs and would like to understand it first before making any test plans.

update client code in electron

So I have multiple clients using an app built in electron. The entire application is actually a number of electron windows that talk to each other. When I have an update for the client side code (html/js/css) I have to have them shutdown, and run a utility that downloads from our internal server to update their app. I would like to know if there is a way I can either push new code to the clients (maybe through a socket) to overwrite the old code, or even maybe poll our 'code server' for updates, and then have it automatically update/overwrite existing code.
Is this possible? Is there functionality built in to electron that allows this?
And, if possible, how can it be accomplished? i.e. is there a library I can look at that will help me?? (i found a filesaver.js library, but its not exactly what I need). Thanks in advance.
You can have your Electron app load all code from a server every startup and cache this locally. You can do this by simply hosting your electron code on a web server and pointing Electron at the URL. You could make the app work offline by using a Service Worker.
This isn't a great idea though as code loaded from the internet will have access to all the node APIs. You will have essentially made a DIY botnet and securing it from abuse can be tricky.
You should read Security, Native Capabilities, and Your Responsibility in the Electron docs and be sure you understand the implications.
You can use the built-in autoUpdater of Electron: https://electronjs.org/docs/api/auto-updater
You need a server the autoUpdater can talk to, to download the updates from. The updates are installed after download.
You can host a server by yourself or use a service like https://www.update.rocks/
What you need is electron updater and you can use electron-builder for that.

Fireloop.io chat app with nativescript

I loved with loopback. But I am new with fireloop. fireloop working fine with angular 4 webapp client but when I try to use fireloop with nativeapp client (nativescript) its SDK only work for REST API. its Real-time feature not working.
debug logs only show 'Creating a new connection with: '
for example:
Creating a new connection with: http://192.123.1.13:3000
only this just logging in console.
I need some guide to settings up fireloop real-time feature with nativeapp.
sorry for my language.
I think it has to do with the websocket api. I presume for the real time you might actually be using that. Its is related to a question I asked earlier regarding angularfire2 and nativescript.
Here is one response: angular-fire2 is expected to run in a browser/server. Mobile devices have different specifications, more limitations, they work differently. Mobile SDKs are also optimized and made to work with the device's operating system and application lifecycle events. The same does not apply to node.js backends.
angular fire2 and nativescript

Chat implementation in windows form using SignalR

I am trying to implement chat application in windows form using SignalR. Actually I had created the web chat application using signalR now i want to synchronize it with windows application.
I am facing following problems
1) How to initialize the hub class as in web application we initialize it in javascript on page load. So how can we innitialize the hub and in web application there is global file to maphub for dynamically generating the signalr javascript so where in windows application can i map the hub to dynamically generate the same.
2) As i want to synchronize the windows application with the web application so do i need to keep both the projects under one solution or can i synchronize the two different solutions??
Please provide the startup code for the first problem as i have searched alot but not getting any way to implement the chat in windows form. the code i found on net just raising errors but helping me in any sense.
This is a full working sample for using SignalR in WinForms and WPF
You can download it and play with it.
There is a WinForms Server and Client which can be your starting point.
It is a good idea to keep the projects under one solution, but its up to you. The WinForms projects will need a server URL where they can communicate with each other (you can see this in the sample code from the above link)

Data synchronization in a Chrome packaged app

In my pursuit to write a Chrome packaged app, I am struggling to get my data synchronized to the app so that it can be used in offline mode.
My data lives on a server and I access it trough a restful service in this case I use.net MVC WebApi
What I have tried: Using Breezejs because of the easy offline capabilities ; the problem is that
window.localStorage
is not available in packaged apps, I did tried switching it out for IndexedDB but no luck.
I tried chrome.storage that worked great with the build in sync but it is not a big truck and that is what I need at least a 10tunner.
So my Question; is there a silver bullet that has some XMLHttpRequest implementations, that makes it easier to get data from a restful service, storing it to IndexedDB so that it can be used offline and when going online syncs the changes, that is compatible with packaged apps.
I know I must probably write my own but if someone already went trough all the hoops and complexities of synchronization that can guide me it will be awesome.
Have you looked at using the syncFileSystem API ?
As long as you are happy to sync your data into Google Drive, this api should meet your needs for not implementing sync code yourself and still working offline.

Resources