Question Details

Solution Answered
Clearing Android/IOS device caches via API call

How to clean caches on clients device ?( a user's android/ios device) The user sees an old image even if the new code is deployed, New images are visible only if a user manually clear his LINE App caches via Settings > Apps

Is there any API in the sdk that clears caches on user device?

0
Profile picture
Shivam

Answers

1
Profile picture
Best answer
Shivam
Posted: 2 months ago

It seems we can't clear the Caches on a cleint end.

From Documentation "if we had a base URL of https://example.com/images/cats, the URL for the image with a width of 700px would be https://example.com/images/cats/700. To confirm all images display properly, access the image URLs."

Here the content of the URL https://example.com/images/cats/700 has been cached by a user's phone So the workaround is rename the folder name cats to cats_v1.1 which creates a new URL "https://example.com/images/cats_v1.1/700" there by displaying the latest images

Are you sure? question.vm