gibbon's Forum Posts

  • I develped this app a while a go and its been running perfectly for ages. Occasionally i update it with some new features when requested but other than that its sits there working perfectly.

    Suited for mobiles (PWA) but works on desktop browsers too.

    Then iOS26 and the latest MacOS came out and its broke, and despite being a long standing web developer I (and AI it seems) cannot fathom out the issue.

    This is the web app - gingernomad.co.uk/weather

    It uses OpenLayers for some Mapping and some custom JS to generate canvas shapes (the donut chart shapes).

    But i think its something to do with openlayers within in C3 that is causing the issue.

    But if i load this on an older ipad/iphone, chrome on windows, edge on windows ETC all works fine. It is just iOS26 and the latatest MacOS Safari.

    Problem is, most uses appear to have it installed as a PWA on iphone that have now updated.

    Does anyone have any idea what might have happened and what is causing it? I do see an error in the web inspector for Safari that i dont get when it works else where which is: unable to get image data from canvas because the canvas has been tainted by cross-origin data - and is referring to ol.js (Open layers).

    Its a good chance for someone to prove were still better than AI at debugging.

  • Could you not have a single function with paraeters for "add" or "subtract" and the "amount" and in the function logic you use that to determine if its adding or subtracting and how by how much?

  • I was just wondering why this actually cant be done?

    I have read a lot online about how it can be OS dependant ETC yet somehow there are many many apps that (for example) log GPS ETC whilst minimised. I'm sure they aren't asking apple/google if they can have some special access to do so, so what is the deal?

    I am simply wanting to track GPS every N seconds whilst minimised.

  • I pay a subscription (and have done for many years) and see features such JS and the HTML element as amazing turning point for C3.

    C3 isn’t just for none coders…

  • You can just edit the index.html file. However, you should find that simply setting the font size of the input to >16px will solve it.

  • Second time I have encountered this and thought that this time round I would put some time into trying to figure it out, but failed.

    With a HTML5 export saved to home screen for offline use and then having it detect an update, I use the "On Update Ready" event to show a message and button to restart. The button uses the Browser object to "Reload" the page, however it just ends up in a loop showing the message again and again until I close the app by swiping and then relaunching.

    What is the proper method of detecting an update, completing the update and restarting?

    It appears 3 years ago someone was experiencing the same issues from the comments on this page... construct.net/en/tutorials/offline-games-construct-8

  • You do not have permission to view this post

  • The most simple way is to set the input font size to 16px or more.

    Also Use maximum-scale=1 in the viewport meta tag.

  • Worked a treat, many thanks!

  • Yes I will, the returned data doesn’t contain the ID but that shouldn’t matter, as long as I can track the result of each request.

    Will give it a go.

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Without checking, are you suggesting that i can set the request tags dynamically, then use the on any complete and retrieve the tag using Ajax.tag?

    That could work if that’s what you’re suggesting.

  • Having used C3 for many client projects using backend server side services I thought this was just another trivial project, turns out not.

    Basically, the start of the layout first requests a number from the server, this number could be anything but likely to be anywhere from 1 to 20 (it also returns this many ID's). The number/count and ID's are stored and then used to do the number of AJAX requests on a regular basis (5 seconds), each request is to get data based on the ID's

    The problem to solve is, how can I do multiple ajax requests (which varies at runtime) and then track each return?

    I cant hardcode each "on complete" because there might be more or less than what is hardcoded.

    Any ideas?

    Tagged:

  • Its bizarre, I'm positive they weren't there. Since loading the project back up I can confirm they are now there.

    Implemented and working as described.

    Thanks

  • So it appears these update functions in the browser object no longer exsist?

    The Browser object has two conditions to detect this happening: On update found and On update ready.

    I cannot find either of these above?

  • I have been working on a HTML app recently and noticed that for every version I export (HTML) I have to force my browser to reload a fresh version (not a cached version) (by adding a version parameter to the requested URL, or put it in a new directory etc).

    As annoying as it is, for dev this was OK. The issue is, this is a targeted mobile PWA and is therefore "added to home screens", so neither of the above can be done. When I update the project the PWA loaded form the home screen does not update.

    Is there any methods built in to C3 to force this?

    I thought that the project version number would be saved inside sw.js so every time its up revved the sw.js changes and therefore I believe will force a reload, but it does not store it inside sw.js (or anywhere in an HTML export from what I can see)?

    EDIT: Just found this, will do some further testing...

    construct.net/en/tutorials/offline-games-construct-8