maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support (https://talk.maemo.org/showthread.php?t=86018)

panukooo 2013-01-11 20:45

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1313621)
Okay I tried to install the app and here is what I discovered. First of all, that widget is .wgz, which means that it's created for Symbian WRT platform. As such, it should be supported by Hydra directly, without adding the config.xml. Symbian widgets use a configuration file called "info.plist" instead.

Hydra seems to be looking for info.plist file in case-sensitive manner because W3C demands such behavior for config.xml. And unfortunately this widget contains "Info.plist" file (capital first letter), which prevents the configuration file extraction from working. Nokia documentation doesn't say if this should be handled case-sensitively and this is the first widget with this kind. But since I suppose the file works on Symbian, it is a bug. I'll see about fixing this for the next version.

Meanwhile, you can 'fix' the widget by unzipping it, renaming the "Info.plist" to "info.plist" and then rezipping the whole thing (remember to zip the directory with the files, not the files in that directory, i.e. info.plist should not be on the root of the zip package but exactly one directory below!). Finally, rename the .zip file to .wgz and your ready to deploy it on your N9.

ok thanks what I did was that, but , instead of renaming the file , I added . " xml " of the old file and rename to . wgt and it worked ! . Another thing I would like to know is how to modify it to full screen view , which files I have to modify ?
thnks man

sviox 2013-01-12 19:00

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by panukooo (Post 1313871)
ok thanks what I did was that, but , instead of renaming the file , I added . " xml " of the old file and rename to . wgt and it worked ! . Another thing I would like to know is how to modify it to full screen view , which files I have to modify ?
thnks man

To modify it to run on fullscreen, simple edit the config.xml and add (or change) a "viewmodes" attribute to "widget" element with value "fullscreen". I.e. it would look something like:
<widget [some other attributes] viewmodes="fullscreen">...

Also, I was a bit busy today making a few fixes for Symbian widgets. Hydra version 1.3.4 should be out in a few days and will be able to install your widget in it's original form, with proper icon used in the launcher and all :)

Here is the full changelog:
* Fixed info.plist being looked for case-sensitively for Symbian widgets
* Fixed icon.png being looked for case-sensitively for Symbian widgets
* Fixed blocked scrolling for widgets with configuration defined viewport
* Improved strings contained by widget.wrt API
* Added D-Bus signal for installation result listening
* Added D-Bus method for uninstalling a widget

panukooo 2013-01-13 02:24

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1314166)
To modify it to run on fullscreen, simple edit the config.xml and add (or change) a "viewmodes" attribute to "widget" element with value "fullscreen". I.e. it would look something like:
<widget [some other attributes] viewmodes="fullscreen">...

Also, I was a bit busy today making a few fixes for Symbian widgets. Hydra version 1.3.4 should be out in a few days and will be able to install your widget in it's original form, with proper icon used in the launcher and all :)

Here is the full changelog:
* Fixed info.plist being looked for case-sensitively for Symbian widgets
* Fixed icon.png being looked for case-sensitively for Symbian widgets
* Fixed blocked scrolling for widgets with configuration defined viewport
* Improved strings contained by widget.wrt API
* Added D-Bus signal for installation result listening
* Added D-Bus method for uninstalling a widget

great thank you very much for the help, excellent work that you do

tonyhuynh 2013-01-23 00:33

I love with calculator widget from opera, it is great calculator ever for N9. Any one know more widget pls share.tks

sviox 2013-01-24 16:14

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1314166)
To modify it to run on fullscreen, simple edit the config.xml and add (or change) a "viewmodes" attribute to "widget" element with value "fullscreen". I.e. it would look something like:
<widget [some other attributes] viewmodes="fullscreen">...

Also, I was a bit busy today making a few fixes for Symbian widgets. Hydra version 1.3.4 should be out in a few days and will be able to install your widget in it's original form, with proper icon used in the launcher and all :)

Here is the full changelog:
* Fixed info.plist being looked for case-sensitively for Symbian widgets
* Fixed icon.png being looked for case-sensitively for Symbian widgets
* Fixed blocked scrolling for widgets with configuration defined viewport
* Improved strings contained by widget.wrt API
* Added D-Bus signal for installation result listening
* Added D-Bus method for uninstalling a widget

Took it's time, but this should be available today (finally). Slow at the store intake for some reason. The next version is already shaping up, but I will let you know later about the changes ;)

sviox 2013-02-02 17:47

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Hello everyone! If you enjoyed using Hydra widget platform, there is now a way to support the continuous development work. Earlier today, a professional version of the software was made available in Nokia Store (http://store.ovi.com/content/345697). New improvements included in the PRO version will be made available to the free version after a few weeks, with the exception of data encryption support.

Here are the changes in 1.3.5:
* Automatic encryption of widget files and stored data (PRO version only)
* Implemented cookie support to WAC webview component
* Modified update checking to only happen if network is available
* Added Google Drive widget
* Separated shortcut widgets to their own category
* Fixed manager application sometimes not picking the best size icon
* Fixed locked horizontal scrolling
* Fixed virtual keyboard getting stuck when input event causes new URL to load

sviox 2013-03-10 21:02

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Wanted to give you some good news. I have successfully implemented experimental support for Firefox OS web apps, allowing you to install and run most of the apps available at https://marketplace.firefox.com/. Coming out in a few weeks with a new version of Hydra WRT (PRO version first, naturally), stay tuned.

nokiabot 2013-03-11 17:14

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Whers n900??

sviox 2013-03-19 15:12

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by nokiabot (Post 1328402)
Whers n900??

Sorry, but I don't have any N900 plans at the moment (no device, no SDK and no experience). Maybe I will open source the app at some point to allow someone else to do the porting.

sviox 2013-03-19 15:14

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
I just wrote a brief tutorial on installing Firefox web apps with Hydra. Check it out at http://sviox.blogspot.fi/2013/03/mozilla-web-apps.html. The support will be officially launched very soon.

matimilko 2013-03-19 15:26

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Hello!
Thanks for this good Widget platform.
Can You tell me how can I check the version of Hydra?

Thank's
Milko

Hariainm 2013-03-19 15:49

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
@sviox
Thanks for your work. I already have the paid version of your app, waiting for new updates. Just a question: Did you tried Soundcloud app for FirefoxOS? Does it work? I'm a heavy user of this web, wonder if it works.

thedead1440 2013-03-19 16:01

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
sviox,

Just to check if the issue with opening office >2007 files is fixed. Thanks!

ehnaton 2013-03-19 19:18

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
@sviox
Firefox Marketplace shortcut widget will be available starting with 1.3.7 release, correct? I couldn't find it in my current 1.3.6

sviox 2013-03-21 15:48

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Firefox Marketplace will be available on version 1.3.7, which I will publish as soon as I find the time to test it a bit more (features are all done for the initial release). Pro version users will naturally get this first (regular version users are actually still using 1.3.5 since 1.3.6 had mostly fixes aimed for pro version).

Think I should add a version number into the manager app in future versions, but for now you can check the version with these steps:
1) Open device 'Settings'
2) Then go to 'Applications'
3) Then open 'Manage applications' (first item in the list)
4) Find Hydra (all apps are in alphabetical order) - the version is below the name

@Hariainm
I haven't used that service myself, but I can check it out. I have had some issues with widgets using audio so I wouldn't hold my breath.

@thedead1440
Really? I honestly haven't done anything on that issue. Proves my suspicions about this being a platform bug true.

sviox 2013-03-23 15:00

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Hariainm (Post 1330085)
@sviox
Thanks for your work. I already have the paid version of your app, waiting for new updates. Just a question: Did you tried Soundcloud app for FirefoxOS? Does it work? I'm a heavy user of this web, wonder if it works.

Good news. I'm listening to a track using Soundcloud right now. So far working all good.

nokiabot 2013-03-23 15:33

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Any chances of it in n900??
I have gone through the thread.

Hariainm 2013-03-24 00:56

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1331128)
Good news. I'm listening to a track using Soundcloud right now. So far working all good.

Sir, you've made my day :D

tonyhuynh 2013-03-24 04:12

Looking to solving the issue, cannot open ms office 2007 file.tks!

chiagn900 2013-03-24 09:21

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
im a premium user of ur app...i hope illd be able to upgrade straight from 1.3.6 to 7 cuz i jusy bought it yesterday... n wen will it be released.. was thinking of going the extramile to get firefox os on my phonr but if it can be sideloaded no p

Hariainm 2013-04-18 21:59

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Version 1.3.7 of Hydra Widget Platform PRO (for paid users) is avaliable for download. FirefoxOS Marketplace support is included in this version.

sviox 2013-04-19 09:16

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Hariainm (Post 1337158)
Version 1.3.7 of Hydra Widget Platform PRO (for paid users) is avaliable for download. FirefoxOS Marketplace support is included in this version.

Yep, it's finally available! (No thanks to people working for Nokia Store who weirdly denied my app 3 times at the intake QA due to their own incompetency...).

Let me know how you like it. There are still a few known issues, such as:
-The marketplace web app crashes and shows a graphical glitch (crash outside my code..)
-APIs for fetching info about installed Mozilla web apps are only dummy implementations so that the Marketplace for example cannot access info about installed apps
-Updates are not yet supported for packaged apps
-HTML5 cache is not yet supported, which means all hosted apps need to be used online

I'll try to address the three last bullets in the next version(s). The crashing issue while nasty, is not really on my turf.

Schedule for next version is totally open at the moment. I have a really really busy spring so development is done quite slowly if at all (sadly). I'm investigating possibilities to open sourcing the app, but that also takes up quite some time, which I don't have at the moment. It would be cool if I could get other developers to assist me with this, since this stopped being a 'small and simple' app quite long ago and it's still growing ;)

Hariainm 2013-04-23 13:52

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Is there any way to run applications marked as "only in FirefoxOS"?
HERE Maps is in Marketplace but can't download it.

P@t 2013-04-23 14:10

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
I could not install HERE Maps as well (available only for Firefox OS) nor Pulse (API error story).

Another remark: the icon which is created is taking the Hydra icon but not the app itself so you end up with plenty of Hydra icons...

Thanks anyway, great work !

sviox 2013-04-24 17:35

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by P@t (Post 1338205)
I could not install HERE Maps as well (available only for Firefox OS) nor Pulse (API error story).

Another remark: the icon which is created is taking the Hydra icon but not the app itself so you end up with plenty of Hydra icons...

Thanks anyway, great work !

Damn Mozilla. They have done some changes to the browser/device detection. I currently have HERE Maps (1.8.55) installed (17.3.2013) on my device but if I now open the Marketplace, it indeed says that "Only available on Firefox OS". The source codes for Marketplace are available at https://github.com/mozilla/zamboni if you want to help me find what they have changed ;)

Hydra should always try to download any icons defined for the Mozilla app installed and use the closest match (based on size) in launcher and manager UI. Are you saying you can't see icons (besides the hydra default one) for any apps? For example, try installing Twitter and let me know if you see an icon (you should).

Hariainm 2013-04-24 17:39

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1338579)
Damn Mozilla. They have done some changes to the browser/device detection. I currently have HERE Maps (1.8.55) installed (17.3.2013) on my device but if I now open the Marketplace, it indeed says that "Only available on Firefox OS". The source codes for Marketplace are available at https://github.com/mozilla/zamboni if you want to help me find what they have changed ;)

Hydra should always try to download any icons defined for the Mozilla app installed and use the closest match (based on size) in launcher and manager UI. Are you saying you can't see icons (besides the hydra default one) for any apps? For example, try installing Twitter and let me know if you see an icon (you should).

Icons work at least for me, what doesn't have the proper icon is the Marketplace shortcut. Not important at all to me. Do you know the URL scheme for downloading the widgets? like https://marketplace.firefox.com/app/...aged/*****.wgt

sviox 2013-04-25 12:38

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Hariainm (Post 1338580)
Icons work at least for me, what doesn't have the proper icon is the Marketplace shortcut. Not important at all to me. Do you know the URL scheme for downloading the widgets? like https://marketplace.firefox.com/app/...aged/*****.wgt

Getting the URL of a packaged app using a browser is easy. Just use a browser that supports an 'element inspector' feature, such as Chrome. Just point on the 'free' button, right click and select 'Inspect element'. Then expand the element to find a button element inside it, and look for an attribute such as:

data-manifest_url="https://marketplace.firefox.com/app/7eccfd71-2765-458d-983f-078580b46a11/manifest.webapp"

You need to download this 'manifest file' and open it in a text editor. The URL to the package is given in a "package_path" field such as the one below:

"package_path": "https://marketplace.firefox.com/downloads/file/201674/here-maps-packaged-1.8.58.zip"

sviox 2013-04-27 17:34

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1338579)
Damn Mozilla. They have done some changes to the browser/device detection. I currently have HERE Maps (1.8.55) installed (17.3.2013) on my device but if I now open the Marketplace, it indeed says that "Only available on Firefox OS". The source codes for Marketplace are available at https://github.com/mozilla/zamboni if you want to help me find what they have changed ;)

After many hours of feeling 'WTF' trying to read the source codes that were not familiar to me, I had a miniature 'Eureka!' moment. It seems that the Marketplace did some changes to prevent packaged apps from being allowed to install in Android's version of Firefox's runtime. Now this shouldn't prevent MeeGo users if you ask me... ;)

So why did it not work?
1. I used User Agent that was made Hydra be detected as an Android device (shame on me!)
2. QtWebkit used by Hydra does not support window.matchMedia() JavaScript function used for CSS media queries (and the Marketplace uses this to check if your using a mobile device, and this condition is for some reason partially used to detect Firefox OS too...)

I changed the UA string and implemented the matchMedia() function to return correct values - and guess what? We're back in business with packaged apps!

Now if I only had the time to finalize this version and publish it... Anyhow, it's coming, sooner or later.

HtheB 2013-05-03 21:26

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
any updates yet for the new version?

sviox 2013-05-05 11:28

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by HtheB (Post 1341019)
any updates yet for the new version?

I'm working on it. ETA 1-3 weeks, depending largely on Nokia Store intake speed.

Initial changelog for 1.3.8:
* Implemented support for update discovery and installation for packaged Firefox OS web apps
* Implemented window.matchMedia() to support Marketplace browser detection of mobile device
* Fixed Firefox OS Marketplace widget to use UA string not detected as an Android device
* Fixed trying to install newer versions of packaged Firefox OS web apps saying it's already installed
* Fixed widget details page to show it's header text with same color as other pages do
* Fixed update description document ETags to support broader character set via base64 encoding
* Fixed installing packaged Firefox OS web app from Marketplace when temp directrory does not exist

Besides finalizing the above, I'm also looking into implementing:
* Support for Mozilla API to query installed web app details
* Support for data URI icons

Lucazz990 2013-05-05 14:11

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
2 Attachment(s)
Just bought the pro version, very nice :)
The only strange thing is that the font and the buttons in the widgets and for example in twitter for firefox are too small!! Is there a way to change this?

sviox 2013-05-06 17:20

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Lucazz990 (Post 1341471)
Just bought the pro version, very nice :)
The only strange thing is that the font and the buttons in the widgets and for example in twitter for firefox are too small!! Is there a way to change this?

The problem is that most web apps (and mobile UI frameworks) are created for devices with about the dot-per-inch ratio of original iPhone. N9 has about 1.5 times that pixel density, which makes content rather small(ish). I'm investigating this and there are a few ways to go with, such as using 1.5x zoom level by default and giving the option (per widget) to use 1.0x instead. Can't promise this for the next version, but I might be able to do something about this for the one after that.

Lucazz990 2013-05-06 19:00

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1341677)
The problem is that most web apps (and mobile UI frameworks) are created for devices with about the dot-per-inch ratio of original iPhone. N9 has about 1.5 times that pixel density, which makes content rather small(ish). I'm investigating this and there are a few ways to go with, such as using 1.5x zoom level by default and giving the option (per widget) to use 1.0x instead. Can't promise this for the next version, but I might be able to do something about this for the one after that.

So I guess twitter and facebook mobile websites are not well focused on N9's stock browser for the same reason...
Thanks for looking into this, sometimes it's pretty hard to press some "x" buttons for example :)
Thanks again and keep up the good work!! :)

sviox 2013-05-07 15:22

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Lucazz990 (Post 1341696)
So I guess twitter and facebook mobile websites are not well focused on N9's stock browser for the same reason...
Thanks for looking into this, sometimes it's pretty hard to press some "x" buttons for example :)
Thanks again and keep up the good work!! :)

Well, the default browser actually tries to act as if it had horizontal resolution of 320 pixels. This is mostly to ensure compatibility with mobile web sited designed for iPhone. It's a pretty decent approach to the issue.

sviox 2013-05-10 20:38

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by sviox (Post 1341900)
Well, the default browser actually tries to act as if it had horizontal resolution of 320 pixels. This is mostly to ensure compatibility with mobile web sited designed for iPhone. It's a pretty decent approach to the issue.

And it goes to changelog... done.
* Changed default device pixel ratio to 1.5
* Implemented support for viewport meta tag

Had to build a bit of a hack though, since QtWebkit seems to do all kinds of wrong things with the viewport meta tag even though it claims to support it. So I completely ignored Qt's handling and built my own.

Lucazz990 2013-05-11 13:54

Great news :)

sviox 2013-05-16 18:27

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Some additional information (with pics) about the upcoming version on my blog.

I'll try to finalize the changes as soon as possible. Tizen apps' viewport handling is currently giving me some headaches but I'm sure I can figure out something.

nokiabot 2013-05-16 20:08

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Too lucrative app:)
at least think about the n900:( in some point of time:)
it will breath a fresh air into it:)

Lucazz990 2013-05-17 08:34

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Will facebook for firefox work in the next version? :)

sviox 2013-05-18 15:18

Re: [N9] Hydra Widget Platform v1.3 from Sviox, now with Cordova support
 
Quote:

Originally Posted by Lucazz990 (Post 1344243)
Will facebook for firefox work in the next version? :)

It's just a shortcut widget that shows http://m.facebook.com/. There is already such a widget bundled with Hydra. But yes, it works.


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8