Notices


Reply
Thread Tools
Posts: 189 | Thanked: 143 times | Joined on Nov 2009
#141
Thx for this nice work! It even helped me to develop my first small Pebble App to get fuel prices for Germany. And all APIs and PebbleJS things I needed and used just worked like a charm .
 

The Following 3 Users Say Thank You to MaemoUser For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#142
Dax spoke to me on Telegram today about the webkit problems. He's had a lot of experience with it doing WebPirate, and thinks it would be easier to fill the gaps rather than move to mozilla, which is says carries a very large overhead and other peculiarities like a global context. He said he'd join the gitter chat later on.
 

The Following 3 Users Say Thank You to abranson For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#143
Yes, the context is global but it is architectural decision, and we need just one honestly speaking.
In general I agree, embedding wrapper around gecko is too fragile, and it works (starts) slower (due to the overhead). It renders fast of course, but settings pages aren't supposed to be that complex to requires super-fast browsers.
The only concern I have around the webkit is that it is abandoned, all major players switched to other engines, even QT themselves are moving elsewhere cutting ties little by little with it.
So on jolla we have out-of-the-box only WebKit (part of QT 5.2) and Gecko-embedlite (part of sailfish-browser). Everything else would require static linking or external dependency.
Gecko is modern, it supports HTML5 and all the bells and whistles, while webkit is old plain html4.1
 

The Following 5 Users Say Thank You to ruff For This Useful Post:
Dax's Avatar
Posts: 27 | Thanked: 136 times | Joined on Feb 2015 @ Italy
#144
Originally Posted by ruff View Post
The only concern I have around the webkit is that it is abandoned, all major players switched to other engines, even QT themselves are moving elsewhere cutting ties little by little with it.
So on jolla we have out-of-the-box only WebKit (part of QT 5.2) and Gecko-embedlite (part of sailfish-browser). Everything else would require static linking or external dependency.
Gecko is modern, it supports HTML5 and all the bells and whistles, while webkit is old plain html4.1
That's an old issue, you can find lots of topics here in TMO and TJC about QtWebKit which is old/buggy/deprecated/abandoned/limited and so on

WebKit shipped with Qt 5.2 was taken from a 2010-11 dev tree.
There is some HTML5 support, but most of them was disabled during packaging in "order to save memory" (?)

I'm eagerly waiting when (and if) jolla updates sailfish to Qt 5.6 which is LTS in order to use Blink through Qt WebEngine.

I tried myself to embed Gecko in WebPirate: it "works", but imho it makes the code complex and difficult to read and maintain and afaik the only "documentation" available is the jolla-browser, I have also tried CEF (Chromium Embedded Framework) but it's even harder to maintain: compiling chromium Content APIs and maintain a QT/Qml binding for it in order to display webpages is too much work for one or two people.

In conclusion, in those two years I have tried lots of ways, but everyone finished with an giant epic fail and they forced me to come back to QtWebKit and wait for QtWebEngine

I think that I have explained all my reasons about QtWebKit and it's status and why me and some other devs are still using it.
It's just to make sure that you don't fall in the same errors and waste time with that
 

The Following 5 Users Say Thank You to Dax For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#145
Hi Dax, I clearly understand your reasoning - because your target is full-blown browser which competes with built-in browser, providing features it lacks.
In our case we merely need WebView. WebKit gives us easy and usable WebView - but it's... what it is.
Gecko, on the first approximation - requires just several lines of code to embed.
Yes, documentation is a nigtmare, whatever documentation is available is either incorrect or misleading, but mostly it just doesn't exist.
That's why I spent almost a week to embed it (reverse-engineering gecko-dev snapshot and sailfish-browser), but in the end - it's just about those several lines of code.
 

The Following 6 Users Say Thank You to ruff For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#146
Can I add a feature request?

Would be good to be able to react on alarms from the watch - snooze and dismiss.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 3 Users Say Thank You to Bundyo For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#147
Originally Posted by Bundyo View Post
Can I add a feature request?

Would be good to be able to react on alarms from the watch - snooze and dismiss.
I'd also like this, though I have no idea if it's possible to interact with reminders and/or alarms. I have a vague recollection of a discussion on here that said that it wasn't yet possible.
 

The Following 3 Users Say Thank You to abranson For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#148
Originally Posted by ruff View Post
You need to run it from command-line (or from SFOS SDK)
ssh to the phone as nemo user (use system->developer page to get ip and password) and run
/usr/bin/rockpool

as simple as that.
It will log settings page url which could further be opened is some web debugger to see what's going on there (eg. firebug).
Ah sorry, didn't knew the binary could be used as debugging.
Anyway, this is what I get when I try to access the settings page:

Code:
[D] onNavigationRequested:30 - https://qibla-www.cpfx.ca/settings/7...7c53879a0d8689 https:/
/qibla-ww
(And it keeps on repeating the same thing over and over again)
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#149
In the Android app, you have to log in to the store to actually access the store. Now, it's quite convenient (and good for privacy) that rockpool can access the store without an account, but afaik the store account (or hash) can be used by apps to identify the watch. Perhaps this makes a difference.

Did it work with pebbled before?
 

The Following 3 Users Say Thank You to Fuzzillogic For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#150
Originally Posted by Fuzzillogic View Post
In the Android app, you have to log in to the store to actually access the store. Now, it's quite convenient (and good for privacy) that rockpool can access the store without an account, but afaik the store account (or hash) can be used by apps to identify the watch. Perhaps this makes a difference.

Did it work with pebbled before?
Since I couldn't access the settings on pebbled, I couldn't try it out
But what you said might be true.
Maybe we can use some "universal" hashes to fake the ID?
Or an option to enable for the ones who wants to use their own hash?
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
Reply

Tags
pebble, smartwatch


 
Forum Jump


All times are GMT. The time now is 01:37.