fgl27 / smarttv-twitch

Twitch client for Samsung Smart TVs 2015 and newer models, in doubt read the README bellow
GNU General Public License v3.0
166 stars 18 forks source link

Cannot install properly on TV #86

Closed MikkelAJ closed 4 years ago

MikkelAJ commented 4 years ago

After a few other problems I finally got to the part where I install the app on the TV. All looks good, I do the step Run As -> 1. Tizen Web Application and on the TV screen it says Twitch loading (I named the project Twitch). After a little while the loading screen disappears and I can see the Icon Smarttv Twitch in my apps. However it cannot launch. It does not launch by itself, when done and nothing happens is I click on the app.

Pressing the Reinstall button in the appstore gives me an error (Unable to install. Please try again later. (Twitch: 52))

I have tried uninstalling, deleting and reinstalling Tizen Studio. And I have never had another twitch app installed on the TV.

I hope you can hel :) Thanks in advance

auto-comment[bot] commented 4 years ago

Thank you for raising a issue.
Make sure you follow the issue templates for yours type of issue see bellow.
Bug report:
https://github.com/fgl27/smarttv-twitch/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
Etc issue that doesn't applies to features or bugs:
https://github.com/fgl27/smarttv-twitch/blob/master/.github/ISSUE_TEMPLATE/etc-related.md
Feature request new app feature:
https://github.com/fgl27/smarttv-twitch/blob/master/.github/ISSUE_TEMPLATE/etc-related.md
Feature request related to a problem:
https://github.com/fgl27/smarttv-twitch/blob/master/.github/ISSUE_TEMPLATE/feature-request-related-to-a-problem.md
Issue that don't properly fallow the templates can be close without any treatment.
I have sent an email to @fgl27 he will get back to you as soon as possible.

fgl27 commented 4 years ago

If you don't follow the proper issue template I can't make any relation on this issue in relation to others. Seems related to https://github.com/fgl27/smarttv-twitch/issues/85

Maybe to a older one, but no one cares to share simple information and share a simple log screenshot.

Install the release app again but this time in debug mode

image

After the app installation it auto starts and a browser windows shows up on the computer, show me the information as the bellow.

image

image

on the resource window click to open the folder to show the same as I share.

MikkelAJ commented 4 years ago

I did not previously have a black screen when opening the app, instead it just did not do anything. Now there is a black screen like the issue you linked.

Here is a picture of the console image

My window does not look exactly like yours, but I think this is what you want me to show: image

fgl27 commented 4 years ago

what is the full information of that line that is "cut"?

the one that starts with "stack:"

MikkelAJ commented 4 years ago

Here:

stack : "SecurityError: Permission denied↵ at NativeManager.getErrorObject (:1:23480)↵ at Utils.checkPrivilegeAccess (:1:6907)↵ at TVInputDeviceManager.registerKey (:1:3921)↵ at https://fgl27.github.io/smarttv-twitch/release/githubio/js/master.js:1:66496"

fgl27 commented 4 years ago

OK that doesn't help much as it doesn't show what key is the issue, I have added extra log information on the function that registers keys.

Repeat the process show me what the result is now even if the app works as it may technically do...

MikkelAJ commented 4 years ago

It seems to be working as it should on my tv now! Thank you so much for your time - I am looking forward to using your app

Here is the console anyway (hope you can read it - I had to zoom out to get everything) image

fgl27 commented 4 years ago

All extra key fail to register, so you can use the app but that will not be a OK experience as the app uses those extra key to give you a better experience... even tho it works only with the d-pad...

So I made this new zip to see if the issue is now solved check it bellow

try install the app the same way in debug mode but using that zip as its content. you need to start a new project in tizen for this to work properly.

release_new.zip

fgl27 commented 4 years ago

as this as privileged issue and is unknown why it happens in some TVs, is necessary to properly fix as there may be some app featuring not working do to missing permission...

So if that zip fix that issue, we OK, if not we must investigate why it fails...

MikkelAJ commented 4 years ago

So you want me to install a new version to see it is a fix?

fgl27 commented 4 years ago

yes install that release_new.zip show me the log

MikkelAJ commented 4 years ago

This gives black screen on TV as well

image

fgl27 commented 4 years ago

I see I fix that... but the test remains the same it fails...

Maybe the keys can't be registered from a file from the web...

So I will make a new zip that registers key locally to see what happens

I share it in a few...

fgl27 commented 4 years ago

please test this... release_new_2.zip

show me the log result

MikkelAJ commented 4 years ago

That seems to work too!

I wont be able to test anymore until tomorrow

image

fgl27 commented 4 years ago

Yes all works I made two options of the function and they all now works but the version 2 (2Registering...) isn't needed, so isn't need a new zip, you can use the one you already have installed no problem, but the old release_4_0_1_V4.zip will also work just fine.

Thanks for the help.