Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 24th, 2024, 2:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: How to save a Quiz score under Android
PostPosted: August 27th, 2014, 3:47 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Opus has a storage action that writes to cookies - actually it's HTML5 localStorage. This is persistent between sessions. Failing which there is a postwebdata action for server side storage.

If your contemplating mashing external JavaScript then you have IndexDB which has decent browser support or the FileWriter API which still has limited support.

http://caniuse.com/

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: September 3rd, 2014, 10:36 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Not sure if you sent us the anonymous email, but I'll answer the question here as it might help in general. I'm not building Android applications so am not delving too deeply into what works and what doesn't - but having taken a quick look at local storage for Android - it appears that it is possible but requires something call DOM storage to be enabled for the webview. As it appears to fail - I assume that it's not enabled?

I'd hazard a guess that this occurs at build time and therefore is not something that a user of Opus can include but would need to be added by DW (I might be very wrong).

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: September 4th, 2014, 12:05 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Oh. Somebody sent it via our contact form on our website. As it was about storage in Android applications, I though it might be you.

Opus Pro 9.5 is the beta version and therefore only available to evolution members for testing at the moment. If you've subscribed but not had a link, send support an email.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 3rd, 2014, 1:21 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It's an outside the box solution but publishing it as HTML5 and packaging it using Intel's XDK (latest) will enable localStorage by default.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 10th, 2014, 3:58 pm 
Offline

Joined: October 25th, 2004, 4:03 pm
Posts: 249
Location: Digital Workshop
Opus: v7.04
OS: XP, Vista Home Premium, Win7 Professional 64bit
System: Dell Inspiron 560 Quad Core 2.5Ghz 4Gb RAM, 1Tb HD, HP laptop and various others
We’ve released a silent update which includes a fix for cookies under Android so you should be able to do this from within Opus now.

If you want it before the official release then you can simply go to the updates page and download the existing update from there. We’ll officially announce v9.51 once any other items are in place but thought you could use it now. It also includes a build number from Android output which is required if you want to upload updated versions of your app to the Google marketplace.

Paul

_________________
Managing Director
Digital Workshop


For this message Paul Harris has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 11th, 2014, 11:58 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
You need to specify a whole number in the version field on settings.

However, a quick test on my Fire and cookies (localStorage) didn't appear to work anyway :-?

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 16th, 2014, 12:23 pm 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
The latest build (in help about) should be 16651. Can you check that's the one you're running?


For this message Dave Emberton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 16th, 2014, 5:02 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Nope. 16647. And that's from the download that just finished now.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 17th, 2014, 9:25 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Mine was the EXE as well :-(

Tried the MSI, Nov 9th Build and this now shows the build number in settings, publishes without error and read and write cookies worked on JB and ICS devices.

[edit] Dave's right. It will read and write under JB but a restart deletes the data.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Last edited by mackavi on November 17th, 2014, 10:25 pm, edited 1 time in total.

Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 17th, 2014, 10:03 pm 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
Obviously we screwed up somewhere with the installs.

I tried switching off the device with the cookies, and it works in 4.4 (KitKat), but not 4.2.


For this message Dave Emberton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 21st, 2014, 12:22 pm 
Offline

Joined: October 25th, 2004, 4:03 pm
Posts: 249
Location: Digital Workshop
Opus: v7.04
OS: XP, Vista Home Premium, Win7 Professional 64bit
System: Dell Inspiron 560 Quad Core 2.5Ghz 4Gb RAM, 1Tb HD, HP laptop and various others
Apologies for the confusion with the uploaded versions. For the avoidance of doubt can everyone try the version here:

http://www.digitalworkshop.com/downloads/beta/opus_pro_9.exe

and confirm that the Android publishing and cookies work.

Thanks.

Paul

_________________
Managing Director
Digital Workshop


For this message Paul Harris has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 21st, 2014, 2:21 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
No, doesn't appear to work with ICS when the device is switched off.

v16655 - Nov 16th Build

mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 22nd, 2014, 6:28 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
I had also been testing with Build 16647 (not 16655), and can not get write variable to cookie/read variable from cookie to work in an HTML5 pub.

Is the local storage to/from cookies only for Android, or will it also work for HTML5?

Working on an HTML5 project: so far, can't set a variable to true/false or 0/1, have it persist when going back and forth between 2 pages and work. When user clicks a button, want to set a (persistent) variable to true or 1, then when the user navigates to another page and returns back to the original page where the button is, either disable that button or hide it, since that button has already been used. This would be easier to do with a local storage than posting web data requiring an ASP or PHP server side page.

Doesn't appear that Build 16655 fixed this?

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Last edited by Stephen on November 22nd, 2014, 8:18 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 22nd, 2014, 8:27 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Valero,

Thank you for your reply.

I installed 16655, and it works, for what I need it to do, in the HTML5 pub. In this pub, I am actually not looking for variable data to persist once the pub is closed. It only needs to persist from page to page while open and then start over again (on SCORM start page, added var = "") next time viewed.

But I can see the value of persistent data storage, especially in an Android pub.

I hope however that whatever changes/fixes are subsequently made, that the current storage ability I am using in 16655 for HTML 5 (write/read variable to cookie) will remain available.

Best Wishes,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: How to save a Quiz score under Android
PostPosted: November 23rd, 2014, 1:07 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Stephen,

The actions in Opus called Write Variable to Cookie refers to the HTML function of local storage.

Opus uses local storage (as can be confirmed by using the development tools of any decent browser) and this storage does remain once the machine is turned off and then back on.

Whether this works is depended on the browser not the device or type of device and with the exception of Opera Mini, local storage is supported across the board -

http://caniuse.com/#feat=namevalue-storage

If you are setting a cookie in Opus and it is not there when you either reload the browser or restart the machine - then you need to check what might be deleting (or preventing the storage of) the data - such as using Private Browsing Mode; using browser cleaning options or other third party tools for clearing browser history.

The cookies work fine in IE, FF, Chrome & Opera on the desktop and FF, Chrome and Android Stock browser on all my Android devices when simply building for a HTML5 publication type. There is no reason to think they won't continue to work either - as local storage is a standard part of HTML5.

However, how HTML5 behaves inside an Android package depends on the version of Android a device is running and HTML5 things that work perfectly as just .htm files loaded directly into any browser - can and do fail when packaged as an .apk.

Hope that clears it up a little.

</mack>





</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group