-
Notifications
You must be signed in to change notification settings - Fork 131
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
Get icon of installed apps on WebOS TV LG kotlin #412
Comments
any fix this issue about loading app icon in LG (webOs |
What do you need, I fixed that |
which url you to load for image , i use |
I changed the link of get Icon to ssap://com.webos.applicationManager/listLaunchPoints |
Can you provide me proper link |
I have displayed it by passing the icon to the link ssap://com.webos.applicationManager/listLaunchPoints |
Ssap://com.webos.applicationManaget/appid This link Right? |
I get the API from the link |
when i get the applist throught launcher.getapplist(). this method give me list of apps. In applist i have id, name , raw variable , so how to create a url for app icon with these variable |
In raw there is data |
Hey @kun510. I use Flutter and platform channel for connectSDK. I got the raw data and I got icon link that not working. I found this method in ConnectSDK, how should I use this?
|
@chabelets
|
Thanks a lot. Works like a charm.
|
Have you try get icon in iOS app, it seems ConnectSDK-iOS doesn't contain listLaunchPoints |
it's just like android |
Have you connected to fire tv yet? |
A can't find getLaunchPoints request in ConnectSDK-iOS, should I create this request manually?
No I haven't. I connected to WebOS for LG tv |
Use the old version pod in ios , you will get the response id, name, icon . |
@MuhammadAsad786 yes sure ! |
I'm a little late but I am trying to do the same thing. I want to get the icon to show from the app list. I implemented the method shown above but I get: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. How would I add this to the TrustManager for access? I haven't worked with TrustManager before. |
@r2creations24 Can you show me the code? |
@r2creations24
|
@r2creations24
|
@r2creations24 show code, screenshot code |
@r2creations24 do you use facebook? |
Do you have any social networks where we can communicate, I will help you there |
link facebook |
check message |
` val webTrust = WebOSTVTrustManager()
` With this, I see the certificate is now read in Logcat from a method in WebOSTVTrustManager() I still get the
issue when trying to load image with Glide Still trying to figure this out..... |
Sooooo, I am persistent. HAHA. I found a workaround through Glide to accept the SSL connection. I created an AppModule for Glide by reviewing quite a few posts I found. This is the main one that started me down this path. https://futurestud.io/tutorials/glide-module-example-accepting-self-signed-https-certificates I posted what I got to finally work here -> https://shift2dev.com/2025/01/04/how-to-fix-glide-ssl-exception-in-android-compose/ I would still like to know if there is something internally through the ConnectSDK that could be used to be able to display the images through Glide or was the solution I stated in this post the only way...... |
haha, you make it more complicated and make it load a lot slower when you can just use the function to link it to the library to display without SSL |
HAHA. Like I said I don't give up. |
you just need call getLaunchPoint function and display image through url, very simple but you make it more complicated |
so good, |
funny but it still gives me the same issue with SSL |
You don't need SSL at all, I think you must be doing something wrong somewhere |
I advise you to keep your project private, don't make it public, because many people can steal your important project |
I'm making a sample about remote on LG TV using webOS with ConnectSDK. I can remote with some basic command, get the list of installed apps on the TV. The data of each item like this:
{"defaultWindowType":"card","requiredPermissions":["all"],"allowWidget":false,"uiRevision":1,"CPApp":false,"systemApp":true,"version":"1.0.0","enableBackgroundRun":true,"vendor":"LG Electronics, Inc.","enableCBSPolicy":false,"hasPromotion":false,"class":{"hidden":true},"tileSize":"normal","icon":"https://192.168.5.253:3001/resources/222fe81584d0dda9a0b9b7951e9206581c1409d9/AirPlay_Icon-77x77.png","lockable":true,"privilegedJail":false,"useCORSWhitelist":"cors_whitelist.json","checkUpdateOnLaunch":true,"transparent":true,"handlesRelaunch":false,"spinnerOnLaunch":true,"id":"airplay","unmovable":false,"inspectable":false,"mediaExtension":{"mse":{"enableSourceBufferFlush":true,"maxVideoSourceBuffer":150,"disableVideoIntrinsicSize":true,"enableServerSideTrick":true}},"inAppSetting":false,"trustLevel":"trusted","mediumLargeIcon":"AirPlay_Icon-115x115.png","title":"AirPlay","deeplinkingParams":"{"contentTarget" : "$CONTENTID"}","noSplashOnLaunch":true,"visible":false,"accessibility":{"supportsAudioGuidance":true},"folderPath":"/usr/palm/applications/airplay","networkStableTimeout":0,"main":"launch.html","removable":false,"type":"web","disableBackHistoryAPI":true,"installTime":0}
2024-03-29 13:57:47.123 9057-9057
With above data, I have url of icon: https://192.168.5.253:3001//resources//222fe81584d0dda9a0b9b7951e9206581c1409d9//AirPlay_Icon-77x77.png
But I can't get icon from this url
I can't find any document about this.
Can anyone help me?
Thanks a lot
The text was updated successfully, but these errors were encountered: