Kiosk App Project

kiosk

(Mark Hunte) #1

I have started a Xcode Project to create a Hype Kiosk App.

Originally posted here


I thought I would give it ago and make one using Xcode etc…

Now I am not a fantastic Programmer and I know I probably do things arse end backward, so here is the source code in the form of the full Xcode Project, A copy of the App and also a template of the Hype Project that I used.

( This is all a hack together) :smile:

*What I would love is for you guys to test it and help improve it for all of us. I have never really setup a collaboration like this before so some help would be good there

The App so far:

Opens in Fullscreen, disables: NSApplicationPresentationHideMenuBar +NSApplicationPresentationHideDock + NSApplicationPresentationDisableHideApplication + NSApplicationPresentationDisableProcessSwitching

To quit the app you need to use a password.
The Password is entered in a popover, which at some point could be changed to offer more options.

I could not find away to block exit fullscreen when the escape key is used, so I used NSWindow delegates to force it back into fullscreen.

The App uses a WKWebView instead of a Webview. This is added Programmatically and more importantly HTML5 LocalStorage just works without any coding or hacks.

Any how here it all is.

Demo - StudentSignOut2.app.zip (978.3 KB) (Updated to unsigned as there is a problem with distributing signed)

Source files : xcode&and Hype file.zip (1.2 MB)

The Project has a hype document embedded using the normal method within an Xcode project. You can place your own in place of this.


I will now post updates to this thread for the Project so as to not overwhelm the other Post.


To come shortly.

  • User option to choose the html file used in place of Hard coded embedded file
  • Bug fix - Html animation stops when window first auto fullscreens.

.


Displaying a Tumult Hype document in a Kiosk or as an app
Tips and Tricks of the Month
For Public Display..! (How to, what do I need)
(Mark Hunte) #2

Update to v 1.1.1

Whats New:

  • App name has been changed to Hyper Kiosk

  • The Quit button and its popover have now been changed to Options

(Clicking the Options button you will need to enter the Password “term” ( this hard coded at the moment) )

At the moment there are two options available.
In normal use the Options will be hidden and a mouse over where it normally sits will reveal it.

Option 1. As before You have a Quit Button

Option 2. You can now choose an new page to display locally on your Mac.

Once you have chosen a Page to display it will be remembered on each launch of the app. until you change it again.
If no page has been selected or the selected page cannot be found on launch then the default page will be used.

Types of files that can be displayed:

This app is intended to display Hype html pages. But since it uses a WKWebview and therefore Webkit, it should also be able to display most files a normal browser can display. i.e video, pdfs .

This is open to discussion on what people think about this as I would like to know people opinion about if I should limit it or not to just html.

( I am of the mind of leaving it as is but I am not sure about pitfalls and I will not actively be supporting the file formats ).


Whats next.

  • I need to look at using the keychain for the user Authorisation password.
    I have don this before, a long time ago and I am pretty sure that thinks have changed since…
  • I will be adding more options.

Fixes:

(FIXED) a bug which when the app launched the animations did not run until the page was reloaded.


(RESOLVED) code signing. My developer code signing was munched on this Mac. This has now been fixed by deleting all the certs and re-installing them. All copies of the App I post now should be code signed unless stated.

Please let me know if you have a problem launching it as I am only able to test on a new created user on the same Mac.


Hyper Kiosk v 1.1.1

Hyper Kiosk.app.zip (2.3 MB)

Source Files:

Hyper Kiosk folder 2.zip (2.7 MB)


Displaying a Tumult Hype document in a Kiosk or as an app
Get Control of & feedback from Webpage Or iOS/Mac App using the (newish) WKWebView
Electronic Technical Manuals: Beta testers invited
#3

No Problem launching on MacBook Pro (13-inch, Mid 2012) OS 10.10.4

D


(Mark Hunte) #4

@DBear, Thats great.

Many thanks


#5

Thanks for sharing, @MarkHunte! Not an easy feat.


#6

A post was split to a new topic: Creating a game with offline capabilities


Creating a game with offline capabilities
(Mark Hunte) #7

Hi,

It would be best if you ask these questions in a new post


(Manuel Fernandez) #8

Brilliant. Works fine in MacbookPro Mid 2015 last MacOS.