wordpress-clients / hybrid

[I don't have time to work on this anymore. Use at your own risk] Build WordPress based PWA, iOS, Android & Windows phones apps in minutes!
MIT License
1.02k stars 348 forks source link

Featured image Not getting loaded #187

Closed Prabhat36 closed 8 years ago

Prabhat36 commented 8 years ago

in the new version of app featured image are not displying in app.. help plz

shprink commented 8 years ago

which WP-API version please? latest tested is beta12

Prabhat36 commented 8 years ago

using beta 12, still featured image are not getting load,,

shprink commented 8 years ago

this version should be fine. What's the network error?

Prabhat36 commented 8 years ago

p i have set images to featured image on my wordpress site. using beta beta 12 ,, still?

shprink commented 8 years ago

give me the wp-api address, will try it here

Prabhat36 commented 8 years ago

http://resulthub.itechjunkie.com/wp-json

shprink commented 8 years ago

image

Fine here, is it the same thing on device?

shprink commented 8 years ago

Check lib/index.html if you run an old version.

it should have:

<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data:; img-src * 'self' 'unsafe-inline' 'unsafe-eval' data: blob: filesystem:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

for pictures to get displayed

AsadAlihp commented 8 years ago

@Prabhat36 bhai Ik baat poochni hai yar apnay icons k colors (blue) kaisay change kiyae?? main bht try kr rha houn par nhi ho rha yar koi idea do na plz

shprink commented 8 years ago

?

AsadAlihp commented 8 years ago

In image he got blue icons. how did he do that? while we only can use icon from ionic, I am wondering

Prabhat36 commented 8 years ago

@AsadAlihp
in config folder open config.scss file and use below code $palette-secondary-text:#3b5998 !default;

Prabhat36 commented 8 years ago

@shprink thanks,, i have made change as u said in index.html now when i open any post it showing featured image but when at posts it still not showing ..

shprink commented 8 years ago

Cannot reproduce

hazrpg commented 8 years ago

I'm also having this problem, is there anything I can do to help you be able to reproduce this?

shprink commented 8 years ago

Try upgrading to the lastest version of WPHC first. It is just a git fetch and a checkout.

hazrpg commented 8 years ago

@shprink I assume you mean the develop branch instead of the release tags? I will give that a go and report back.

shprink commented 8 years ago

no no I meant if you do not run the latest then upgrade.

How is this behaving on device? Is it the same (with my web service it works and with yours it does not)?

hazrpg commented 8 years ago

Oh, in that case... I already had the latest. Seems the same problem happens in the develop branch too. However, I have not tried compiling to a native app so I will try that next. The behaviour locally using npm run devserver however is that it works with your web service, but not mine. When inspecting the elements it seems the img src attribute is blank (on mine) - which is bizarre, considering the json feed definitely has a url to the image.