Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

HTML5 API integration (Itch.env.ITCHIO_API_KEY) no longer working?

A topic by sylefeb created Aug 14, 2022 Views: 439
Viewing posts 1 to 1
(+1)

Hello,

In the past I've been successfully using the API when running from the app (HTML5 game), testing for the Itch object existence from javascript as documented:

if (typeof Itch === 'undefined') {  
  console.log('no Itch context');
} else { ... }

This no longer works (I always get 'no itch context', both when running in the app and the itch.io website). I also tried with this sample project (replacing the files in my own project)  https://github.com/fasterthanlime/sample-html-app  and it also does not find the Itch object.

Is there now an additional step to take besides the manifest?

Thank you!

Best regards -