Sandalone app fails to load in offine after publish

When I publish my app, some users cannot open it if there are offline. They have a blue screen with the message:

Could not load request from http://expo.io:443…: the request timed out

Here is a screenshot:

In my app.json, I have:

    "updates": {
      "fallbackToCacheTimeout": 0
    },

Shouldn’t it be using the cache version if the network is not available? Why this error then?

Hey @matthieu.fslr,

Have you made use of asset bundling for the project? Also, have you tried to reproduce this on your end by disabling your network connection and opening your app?

Cheers,
Adam

Hey @adamjnav,

Thanks for your reply.
I tried to bundle my assets but it may be the problem indeed.
I have several images, but when I build the app, here is what I get in the logs:

{
  "bundledAssets": ["asset_5536240d6288d8603989bd29c99071b7.png"],
}

I should have all my images here right?

In my app.json, I tried this:

{
    "assetBundlePatterns": [
      "assets/**/*",
      "node_modules/react-navigation/src/**/*.png"
    ],
}

and I reference my assets like this in my code

require('../assets/icons/selected_icon.png')

Am I doing something wrong?

Thanks for your help!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.