Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30
My Carrier: Bell
Accepted Solution

Clear cache of assets?

I have a json file that I am using as a database and I find that when I modify the values via Momentics and try to redeploy the app to the Dev Alpha device, it doesn't pick up the new version of the asset. It seems like it is caching the old version.


I can get it to forget the cached version by changing the package ID of the app in the bar descriptor, but that should not be the solution as I can't do that when this app is deployed to the App World.

 

Any suggestions on how I can get the device to forget the old version of the file?

Please use plain text.
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30
My Carrier: Bell

Re: Clear cache of assets?

I think what's happening is that the updated asset is not being copied to the 'data' folder of the app since it already exists...

I guess since in the real world I wouldn't be modifying the assets anywhere but from within the app, this is fine. I've just gone in and manually deleted the asset from the 'data' folder and it safely created it again upon running the app again.
Please use plain text.