Page 2 of 2

youtube component disappeared after update to libraries 3.1

Posted: Thu Aug 11, 2016 4:42 am
by Matt Scott

Thanks Sergiy,

It seems to be a network connectivity issue. Event though the device is connected to the network but somehow the app cannot make a connection.
The Youtube component needs to download javascript files when app is launching (youtube iframe api) but the download is not successful. That's why we see the empty area instead of the youtube video.

I have tested embedding the youtube javascript api locally.
The result is there is an alert about the network error (See screenshot). Also at the bottom of the page (where I drag the youtube component), the component now display something but the content is a network error message.

Possibly there might be a configuration error in Android during the migration to libraries 3.1?
I have no idea how to validate the setting.
How can I check the network setting on Android side?

Test device: Samsung Galaxy Note 10 - Android 4.1.2

Thanks very much for your help. This is essential that I can resolve this issue, so I very much appreciate your time.

Image


youtube component disappeared after update to libraries 3.1

Posted: Thu Aug 11, 2016 4:43 am
by Matt Scott

this screenshot from Android 4.1 - but also same on android 5.1.


youtube component disappeared after update to libraries 3.1

Posted: Fri Aug 12, 2016 6:14 am
by Serhii Kulibaba

Youtube component in Appery.io is a simple embed youtube video, so it requeires internet connection. If you use the application locally, please check a connection, if there is no connection - hide a youtube component and show another one, e.g. label, which says "Video is not available", else - hide that label and show youtube component.

Please look here how to hide/show components in Appery.io applications: https://docs.appery.io/reference#exam...

You can check a connection state with predefined Cordova plugin "network-information" (https://cordova.apache.org/docs/en/la...)
with a value of the object: codenavigator.connection.type/code

Or with events offline/online (https://docs.appery.io/docs/appbuilde...) which are triggered when devices goes to offline/online


youtube component disappeared after update to libraries 3.1

Posted: Fri Aug 12, 2016 10:40 am
by Matt Scott

Hello Sergiy,

Thank you for your response. Honestly though, your response has gone a bit off track however from my original problem.

I am generally aware of the points you made in your last post, but please remember that my problem is:

This issue, (what seems to be a connectivity issue), with the youtube component only happened after I updated libraries from 2.2 to 3.1.
I did not do anything else to the app.
I simply updated the app using appery's built in libraries. I updated from 2.2 to the most recent, 3.1, and the result is that a basic and very simply core component no longer works.

I understand that sometimes strange things like this happen. No problem. Very understandable.
But I want to try to re-focus your response.
I need help with how to correct this issue.
Youtube component should not break after simply updating appery's core. It did. No problem. But please help me to fix that.

This is such a vital issue for me, because of the Cordova vulnerabilities with older versions. Google will not allow any play store updates using the older versions. So, I must use the current 3.1 libraries. I cannot use the app with the older 2.2 libraries any longer. I must resolve this issue.

Let's please refocus the conversation, and work together to find the solution to this very basic issue.

Thanks again very much for your time.


youtube component disappeared after update to libraries 3.1

Posted: Sat Aug 13, 2016 9:50 pm
by Evgene Karachevtsev

Hello Matt,

We couldn't reproduce this problem in a brand new app. Could you please try to do the same - add just the YouTube video component and then change the library version?