how to do session / cookies management in Scene samsung smart tv? - session

Any sample code or documentation on session/cookies management in Samsung smart tv app development while using "scene" in application

Samsung TV Application running under a single-webpage architecture. All of the "scenes" will injected to index.html and becoming single instance which is "never" reloaded, So i never use session/cookies since all of global javascript variable will do the information sharing between scenes.
But if you want to use session/cookies for storing data after the application closed, you can use the File API to store text data in the TV and the data will "live" until the application uninstalled.
http://samsungdforum.com/Guide/ref00001/index.html

Related

How are collections used in the Android Management API - Managed Play Store?

Within the Android Management API - Managed Play Store, there are collections which can contain specific applications. How are these collections supposed to be used? I felt like the documentation was lacking in this area. I am trying to figure out how these collections work in comparison to putting applications into a policy. With a managed device, is it expected that these collections show up in the device's Play Store?
The Organize apps page lets IT admins organize apps into collections (also called clusters). For example, an IT admin can create an Essentials collection for frequently used apps or an Expenses collection for apps related to tracking expenses, logging travel, etc. Collections are displayed in the Play Store homepage on user's devices.
On user's devices, the Play Store app only displays apps from a collection that are available for the user (or device), which means that if an app is not included in your policy, it will not appear on the user’s device
To integrate IFrame into your console please check this (documentation)[https://developers.google.com/android/management/apps#add_the_iframe_to_your_console]
I try to explain it better:
Firstly, set your playstoremode to WHITELIST
Then, in your policy include all the apps as AVAILABLE or FORCE_INSTALLED which you selected in your cluster (collections)

With a Spring MVC webapp, can you take a photo on a mobile device and upload it to the server?

I was asked to write a webapp using Spring MVC that among other things it must either take a photo on a mobile device or at least upload it from the device's photo library. Apparently we have some product (probably .NET based) that allows taking/uploading photos from the a web page displayed on a mobile and is where they got the idea from. Most devices will be iPhones but some might be Android.
Is this even possible with a Spring MVC webapp - with no code on the mobile device?
If yes, how would you go about designing this? Is it simply a matter of implementing a file upload as you would from a PC and trust that the mobile device will somehow magically handle the "take a photo" or "pick the photo from the image library", or is there more to it?
Is there anything else I need to know about?
Yes, although I am experienced with Spring MVC and even "normal" webapps that are accessed from a mobile... I am clearly clueless about this type of "photo" app.
write the web app allow access to the camera through the browser of device, when the users take the photo send it to web app or simply create the form allow user select image from device. ( with browser of device you can access camera or folder on device

Is there any code to manipulate the localstorage with any UWP

Edge DevTools Preview could manipulate local storage of a PWA APP , could i do it also ?
EdgeDevTools is a close source APP , and i googled , no document says some API or SDK could manipulate the localstorage of a PWA APP.
Yes, since the UWP application is a sandbox application, in theory each application is independent of each other and cannot directly access the data of an App.
The PWA application relies on WWAHost.exe, but it also enjoys the treatment of UWP applications. Its data is protected and will not expose data access methods.
Best regards.

custom keyboard in iOS 8 access

is a custom keyboard in iOS 8 able to get access to the iPhone camera ??
because i heard that it can't get access to the microphone
No, you cannot.
As Apple documentation states:
Because of its focused role in the system, an app extension is ineligible to participate in certain activities. An app extension cannot:
Access a sharedApplication object, and so cannot use any of the
methods on that object
Use any API marked in header files with the NS_EXTENSION_UNAVAILABLE macro, or similar unavailability macro, or any API in an unavailable framework.
Access the camera or microphone on an iOS device
Perform long-running background tasks
Receive data using AirDrop
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionOverview.html#//apple_ref/doc/uid/TP40014214-CH2-SW2

How to grab selected HTML from browser and pull into my app

I'd like to create a Cocoa app that is able to grab selected text from a website in a third-party browser (in other words, NOT from an embedded webkit instance running within my own app) and then store it in my app's database. From what I can tell, I need to user some kind of service for this, like how selected text in Textedit can be turned into a new sticky note via a service. However, I'd like to be able to provide this app through the App Store. Does that mean I need to use XPC services?
That's as far as I have gotten. So if I do need to use XPC services, can someone point me in a helpful direction? The Services Implementation Guide is totally over my head.

Resources