Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Ionic 4 with FB Instant Games

$
0
0

@jawnwee wrote:

After running ionic build I compressed the build folder to fb instant games. however when attempting to test, there is an issue where the chunk js files are not being located properly.

In the index file, if I have <script src="static/js/10.428e7f18.chunk.js"> this runs properly, but the default is with a forward slash “/static/js/10.428e7f18.chunk.js” and this makes fbinstant games unable to locate the file properly. So, if I change all the generated lines in index.html, that part runs fine, but all other parts that call /filepath/ breaks. I’m having a hard time explaining this, but I’m fairly certain its the main issue.

Having the / makes all calls to something like
https://apps-556098924941280.apps.fbsbx.com/static/js/89.b05dd8b9.chunk.js

Where it should look like
URL: https://apps-556098924941280.apps.fbsbx.com/instant-bundle/3510048395679816/2601380393289276/static/js/main.3ba71589.chunk.js

Is there some config I can change to apply the change I need?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>