« first day (2731 days earlier)      last day (1252 days later) » 

05:16
Morning
 
1 hour later…
06:17
@Shubhank good morning..
facing issue with this. Any idea?
0
Q: call OnScrollListener for certain amount of visible item in RecyclerView

Shihab UddinI used a Circle Page Indicator as ItemDecoration at bottom of a recycler view with a GridLayoutManager & setting orientation as Horizontal. Currently, the indicator changes its position when the user moves an item left to right or vice versa. But I need to change the page indicator when total vis...

 
1 hour later…
07:40
Robin might have helped on android..
my skills are lot basic now
08:11
Hi Guys, i doing existing code in objective c. How to expand shortlink deeplink ?
i used firebase dynamic links.
expand means?
mean, i want get full link from shorten link
Example
shorten link
https://example.page.link/11Yb

full link
https://www.example.com.my/gozo-epsilon-premium-123285.html
okay, there should be something in the firebase sdk which says how to get the full url?
for the swift i can get it. But for objective i not found the way how to get it.
whats the solution for swift?
08:36
URLSession.shared.dataTask(with: url) { (data, urlResponse, error) in
let expandedURL = urlResponse?.url?.absoluteString
print("expandedURL GET: \(expandedURL ?? "Oops, not URL")")
}.resume()
09:10
okay
this must be same in objc @A.Shukri
[[URLSession shared] dataTask
09:46
but i not strong in objective c. Not sure how to convert it
ok just chec how to do a url request in obj c
you will find lots of code available online
 
2 hours later…
12:22
Hi guys, can someone suggest me a library to read audio samples?
what i get so far from LFLiveKit is we have to get audio data in bytes and send it
13:01
Hi folks , Can someone suggest as soon as I use SCROLLVIEW DELEGATE methods , in WKWebview the scroll becomes slow and laggy what could be the reason
13:14
what do you do in it @iMinion
@Shubhank I get the scroll to set constraints programatically
code?
so if I comment out the programatic constraints code it does not make any difference but as soon as I comment out the scroll delegate methods the scroll becomes normal
     webView.scrollView.setContentOffset(scrollView.contentOffset, animated: true)
this will always give jerks
@Shubhank it worked thanks bro !
If you could help me in one another query
13:28
yeah sure
I m saving images at an API call in a folder in documents directory while retrieving I have HtML which contain only image extensions , I am unable to fetch them and show in device but its working in simulator
to be specific
0
Q: iOS 13 Swift 5 wkwebview - display image from documents directory into wkwebview real device

iMinionI have an app with downloaded images to be displayed in local html in WKWEBVIEW. Everything is working fine but it is not showing image on iPhone device the html is "\n<img src="images/d35fb6a3-8a21-4196-9616-ad2c6db60669/fd21b894-38c0-42c5-aa69-a938abe40e4b2467857252325869136.png">\n<img src="i...

@Shubhank
okay that's something a little complex. Not really sure why it would work on simulator and. not device
well its an issue
11
A: WKWebView fails to load images and CSS using loadHTMLString(_, baseURL:)

Scott BrowneI had this problem today, I've found the solution and potentially the cause: loadHTMLString(String, baseURL: URL?) This function doesn't allow the rendered HTML to access local media, as far as I'm aware, this is because it would be an injection risk, this could allow rendered HTML to access ...

are you sure the images are downloaded as well?
yes I can view then in my Mac when I get path in Base URL
13:38
but try listing the contents of folder on device using print
and see what are the files in the path.. maybe the image is not there
ok if I have the path correctly how can I render them from that path to WKWEBview
I get have this as HTML
"<body>\n<p><img src=\"images/d35fb6a3-8a21-4196-9616-ad2c6db60669/fd21b894-38c0-42c5-aa69-a938abe40e4b2467857252325869136.png\"></p>\n<p><img src=\"images/d35fb6a3-8a21-4196-9616-ad2c6db60669/c927a2a6-4ef0-481d-b27d-525cec7ed3814195490571216387044.png\"><br></p>\n</body></html>"
13:54
@Shubhank if I save the html in a HtML file , can I render the resources of that HTML FIlE from my documents directory
 
4 hours later…
18:07
sorry @iMinion i forgot
@iMinion i am just saying have you checked when in simulator.. the images are also downloaded or you want to render image from the website?
18:25
@Shubhank yes I checked they are downloaded .I am able to render a single image but not the all the images of html
@Shubhank can I show u code ?

« first day (2731 days earlier)      last day (1252 days later) »