Enyo location on Pre3 device - webos

I'm just starting to have a look at the enyo framework as I bought a Pre3. I've downloaded the SDK and VM, and also the eclipse plugins to write code in eclipse.
Everything works well, except that the plugins has not been updated to use the enyo framework.
The index.xml file points to mojo :
<script src="/usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1"></script>
So I assume the rest of the skeleton is also using mojo objects ...
It doesn't seem right, the eclipse plugin has not been updated ?
Could I know the enyo.js location on the palm device ?

I don't use Eclipse, so this never affected me personally, but my understanding is that HP/Palm never updated the Eclipse plugin for the Enyo framework. I developed my Enyo apps in Notepad++ on Windows and TextWrangler on Mac, testing locally on Chrome or Safari.
Note that you do not need to know the exact location of the Enyo framework on the device. In index.html you need to put the location of Enyo in your computer, as this allows you to test your app on your browser without a device or emulator.
The palm-package utility rewrites the <script> tag in your index.html to point to the correct place on your phone or emulator when it creates the ipk package.
For a slighly outdated webOS SDK the install locations for Enyo are these:
on Mac OS X:
<script src="/opt/PalmSDK/0.1/share/refcode/framework/enyo/0.10/framework/enyo.js" type="text/javascript"></script>
on Windows 7 64-bit:
<script src="C:/Program Files (x86)/HP webOS/SDK/share/refcode/webos-framework/enyo/0.10/framework/enyo.js" type="text/javascript"></script>

Related

Can a Xamarin app be updated by downloading an image, CSS, or .js files using WCF service?

Suppose we write a Xamarin MVC application which is deployed to a device and runs connected to the web.
If we need to update the application by downloading some images, CSS, or .js files using WCF service, for example, is that possible?
Does iOS, Android, and Windows allow you to do that?
Thanks
You can not update the app bundle itself on either iOS or Android, and presumably UWP but I am not very familiar with that platform so not sure. For iOS and Android the app bundles are signed so they can not be modified or else the signature will no longer be valid. You can, however, download anything you want and store the downloaded files in the file system. Every app does have a file system it can access to read and write from. See this Xamarin doc:
Forms:
https://developer.xamarin.com/guides/xamarin-forms/working-with/files/
You might also want to look into the PCLStorage plugin:
Xamarin Component: https://components.xamarin.com/view/pclstorage
NuGet: https://www.nuget.org/packages/PCLStorage/
Source: https://github.com/dsplaisted/PCLStorage
(I know I should paste relevant bits from links, but there is just too much to paste and would end up pasting the whole article. If above link is broken, just google "Xamarin working with files")
Note: I work for MS/Xamarin

Show web-application as fullscreen app in Windows 8

I'm building a web-app and I would like to display it as a full-screen app in Windows 8. The result should be something else like in safari on an apple iPad:
Safari:
I've added these two meta-tags in my index.html:
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
Then I opened my web-app in the safari of my iPad and added the site to my homescreen. After this, I got an icon on my homescreen and when I open it, there is my web-app in full-screen, without the browser-containers around it.
Can I do something else with the same web-app on Windows 8? I thought, I could create a metro app, when I add the site to my apps in Internet Explorer. But I think, I also need some meta tags. I found many tutorials on the web, but nothing worked for me.
I suggest that you create a Windows Hosted Web App
http://microsoftedge.github.io/WebAppsDocs/en-US/win10/HWA.htm
Using the Microsoft App Studio, you can do it in minutes
http://appstudio.windows.com/projects/create

Is it possible to view output of visual studio cordova project as a web app in browser?

I am using Visual Studio 2015 tools for Apache Cordova for mobile application development on Windows 7.
To build and run my app, I have to choose one solution platform and one target.
Is there any way to view the output on my browser just like a web app with no emulator?
When I press f5, the result will open in a browser in an emulator mode which I choose as system platform and target device. But I want to run my app like a web application, when you right click on index.html and select view in browser.
I look for a project setting or a ‘system platform’ and ‘target device’ value that work like that.
PS:Selecting any windows solution platform and local machine target needs Windows 8 or higher and the build process is failed.
Thank you.
The solution I found for my problem:
I used the url of my output result with emulator: "http://localhost:4400/index.html?enableripple=cordova-3.0.0-NexusS"
and then removed the emulator settings in url: "http://localhost:4400/index.html".
Using this url will cause some popups asking some things. These are for 'cordova.js' script which is referenced in index.html file of cordova project. As we do not need this in browser, commenting the line <script src="cordova.js"></script> from index.html, no dialog will open any more and the project will compile so faster for initial design that do not need cordova.
Now I will use chrome mobile mode (f12-> phone icon) to see mobile view of my app.
#A.M.
The answer depend on your expectations.
If you just want to view the page layout and test some of the associated Javascript, the answer is YES.
If you want to test the plugin libraries and associated JS, the answers is NO.
However, here are some items to be cautious with - either way.
When running your code on a device, you MUST wait for the
'deviceready'. There are not ifs, ands, ors, or buts on this - you
must wait.
You can emulate some of the plugins. This Summer some of HTML5 APIs have become available. If you want to write a shim, you can emulate some plugins with the HTML5 APIs, and use the Phonegap plugins on the mobile device. NOTE: some emulators now support HTML5 APIs.
Not all browsers are equal and not all webview libraries are equal. Cordova and Phonegap both use a webview library with their respective platforms. On Android, it is called Webview. On iOS, it is WKWebview. These libraries are finally starting to get some attention. So Google, Apple, Intel and others are all making competing libraries. *better for us* ;) One new library for Android is called crosswalk. Many developers like it, but it is bloated.
Best of Luck

intel xdk test cache

I'm making an app using the Intel XDK.
I'm also using the "app preview" app on a Galaxy Tab 2.
My problem is that when I "push" files to the Intel servers to load onto my device, there seems to be either a delay, or a caching issue because I'm getting what I KNOW is old js and css code.
The HTML file seems to change just fine.
As a work-around, I was loading my js file with a unique number in the src, like this:
<script type="application/javascript" src="js/ae.js?ver=abc123"></script>
but now even that only works sometimes.
Am I doing something wrong?
I've seen this happen sporadically. The webview should clear out the files. Have you tried using the Debug tab and testing through App Preview? It will load Crosswalk then for you. This lets you connect your device through USB and debug in a much faster way.

Possible issue using underscore's template engine on a windows phone 7 device

has anyone had issues with the underscore.js built-in template engine using a windows phone 7?
My App stops running when it comes to this line:
var Template = {
loadingWheel: _.template($("#loading_wheel").html())
};
An alert() before that line will be performed, an alert() after doesn't happen so I assume it's something about underscore templates.
I alread tried renaming Template to something else, I guess it's not about a reserved name or something.
#loading_wheel is an inline script-tag template that looks like this:
<script type="text/template" id="loading_wheel">
<div class="loading">
<img src="/images/loading.gif" />
</div>
</script>
Hum, quite simple, isn't it?
I'm using Backbone.js 0.9.2, Underscore.js 1.3.3 and Zepto 1.0.
The App is working on several iOs 4+5, Android 2.3, 2.6, 4.0, 4.1 and Blackberry Devices.
Just Windows Phone 7 is not showing anything.
It turned out that the problem wasn't underscore specific but caused by the zepto framework, that obviously doesn't support windows phone browsers.
This is why this line of code failed:
_.template($("#loading_wheel").html())
Using jquery instead works fine (but loads some 65KB more).

Resources