Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymer flat design phonegap #560

Closed
kegita opened this issue Jun 27, 2014 · 12 comments
Closed

Polymer flat design phonegap #560

kegita opened this issue Jun 27, 2014 · 12 comments

Comments

@kegita
Copy link

kegita commented Jun 27, 2014

Hello! I have tried to follow "your first application" tutorial implementing it on phonegap, but i have noticed that the result wasn't what i expected.
Is there support for Phonegap or not???

@ghost
Copy link

ghost commented Jun 29, 2014

@kegita I think you should describe in more details what "wasn't what i expected" means.

Polymer is using on Shadow DOM and based on http://caniuse.com/#search=shadow%20dom you can create apps only for Android 4.4 now.

@Youhbi
Copy link

Youhbi commented Aug 12, 2014

I quess the question was, even he didn't know Polymer requiers Shadow DOM.
Does Phonegapp support Shadow DOM?

@robdodson
Copy link
Contributor

It depends on the device. If you're running on an older android device
you'll need to look into incorporating crosswalk into your project
https://crosswalk-project.org/#documentation/cordova

On Tue, Aug 12, 2014 at 2:40 AM, Youhbi [email protected] wrote:

I quess the question was, even he didn't know Polymer requiers Shadow DOM.
Does Phonegapp support Shadow DOM?


Reply to this email directly or view it on GitHub
#560 (comment).

@Youhbi
Copy link

Youhbi commented Aug 13, 2014

So Cordova/Phnegap only supports the Webview, which the installed OS Version supports?

@robdodson
Copy link
Contributor

Im not sure what you're asking.
On Aug 12, 2014 10:15 PM, "Youhbi" [email protected] wrote:

So Cordova/Phnegap only supports the Webview, which the installed OS
Version supports?


Reply to this email directly or view it on GitHub
#560 (comment).

@Youhbi
Copy link

Youhbi commented Aug 13, 2014

If we take a look at CanIUse - Shadow DOM
Android supports it since 4.4 (at least the browser does).

When I run an example of Polymer in my Phonegap App, everything works fine (I'm running 4.4.2).
Is this because I'm running a newer Android or would this also work in 2.3 (bad example) since Phonegap knows how to render it anyway?

@robdodson
Copy link
Contributor

My understanding of Phonegap is that it uses the webview to render your
app. In Android 4.4 the webview was updated to use chromium, so Polymer
works. In versions of android prior to 4.4, the webview does not work with
Polymer. Including crosswalk will bundle a version of chromium with your
app, and allow it to work on Android 4.0 and above. I don't know if it will
work on Android 2.3
On Aug 13, 2014 9:09 AM, "Youhbi" [email protected] wrote:

If we take a look at CanIUse - Shadow DOM http://caniuse.com/shadowdom
Android supports it since 4.4 (at least the browser does).

When I run an example of Polymer in my Phonegap App, everything works fine
(I'm running 4.4.2).
Is this because I'm running a newer Android or would this also work in 2.3
(bad example) since Phonegap knows how to render it anyway?


Reply to this email directly or view it on GitHub
#560 (comment).

@Youhbi
Copy link

Youhbi commented Aug 13, 2014

That was the answer I was looking for ;)
I've read that with crosswalk, what I don't like are the extra 18mb and no support for IOS.
I know there are some other solutions, but with everything additional come about 3 new programs to deal with. And this makes the whole idea of hybrid completly irrelevant.

Oh an btw, great presentation @ the I/O 14 :)

@robdodson
Copy link
Contributor

Thanks :)
On Aug 13, 2014 9:26 AM, "Youhbi" [email protected] wrote:

That was the answer I was looking for ;)
I've read that with crosswalk, what I don't like are the extra 18mb and no
support for IOS.
I know there are some other solutions, but with everything additional come
about 3 new programs to deal with. And this makes the whole idea of hybrid
completly irrelevant.

Oh an btw, great presentation @ the I/O 14 :)


Reply to this email directly or view it on GitHub
#560 (comment).

@deviprasad97
Copy link

i am facing the same problem i have tried on android 4.4 , on chrome its working correctly but in webview through phonegap shadow dom is not working

@caiowilson
Copy link

@rtexplore as stated by @robdodson you will have to use crosswalk + cordova in order to get phonegap framework to get along with shadowdom in your webview.
Btw phonegap, whilst being a great easy tool is also hugely open to XSS attacks, I would consider a change.
much of luck.

@deviprasad97
Copy link

@caiowilson #allofyou Corsswalk it's worked like a charm for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants