Custom code in story.js for mobile versions?
Aug 09, 2015
Hello,
I wrote some custom ajax code inside of my story.js for my quizzes in order to store some information into my database, which has been working relatively fine on desktop computers. However, when I experimented with the quizzes on a mobile device, I discovered that it did not activate my code at all, even when I just tried a simple javascript alert function. I was wondering if there were any limitations to Articulate's mobile player in regards to the story.js.
I also understand that for mobile devices, I can choose to publish the file to require users to use the Articulate Mobile Player app in order to view it. However, when I tried that, I got numerous reports from users that they couldn't even get the player to load. This included non-quiz parts of the course. After deselecting that option and re-uploading, mobile version seemed to work again, though my custom code still wouldn't work. So this leads me to believe that it isn't just a case of not allowing the app to work.
On a related note, does the Articulate Mobile Player app have the ability to communicate online? As in, will it be able to communicate with our servers when users go through it? Or is it just an app that forces the player to display in a certain manner?
Does anybody have any other information regarding the mobile version of Storyline courses, and their ability to run custom Javascript code? Is it even possible, or will I need to find another way to store information into a database for mobile?
6 Replies
I was just experimenting with the Articulate Mobile Player app again to see if my user.js scripts would run, and had a single Javascript alert function to be called when a slide began. It did not come up at all when the Mobile Player got to that slide. So is the Mobile Player not capable of running any of the .js files, or is there something specific I need to do to allow it?
Hi John,
In regards to communicating, if you're hosting your course in an LMS and you need to use the mobile player vs. the HTML5 content you'll need to publish for Tin Can. You may want to review the information here on publishing for Mobile deployment and the options available to you.
This post was removed by the author
You are correct, Ali. This is outlined in our documentation here.
While I have you, Articulate Mobile Player (AMP) courses rely on Flash output, so we ended support for the AMP app on December 31, 2020.
How the End of Flash Affects Articulate Apps and Courses
Following...
Hi Leslie, sorry to hijack this post but I'm trying to find a resolution for an issue here and I'm wondering if you could help? Thank you!
Hello Ali,
You mentioned that you were already aware of the ability to run HTML5 on mobile devices via the browser, which I would recommend.
I look forward to hearing from others in the community.
Hello Mary,
Thanks for the link. I'll take a look.