VAREST Plugin - Working in PIE but not on Android Device

Hi,

I’m trying to fetch a json file I stored at the root folder of my website to check if my app has any updates. I’m able to do this in PIE. This is my setup.

When I package and upload to Play Store and then download it to my Android Phone, I’m not able to see the result for this. I don’t think the code is working on Android Phone. Any idea why this is working in PIE and not an actual device?

I figured this out. Here is the solution.

  1. Go to Your Engine Installation folder\Engine\Content\Certificates\ThirdParty
  2. Copy cacert.pem
  3. Paste it in Your Project Folder/Content/Certificates (If Certificates folder doesn’t exist, create it)
  4. In UE4, go to Project Settings → Packaging → Additional Non-Asset Directories to package.
  5. Click on + and add an element to the array
  6. In the box, type Certificates

That’s it. Package it again and it should work now.

1 Like