When I add it it stops the previous sections from working (these change the logo on when saved to the homescreen of mobile devices). I expect it is something fairly simple and obvious - any suggestions welcome…
Many thanks
/* Change the favicon to an image saved on the database. */
ChangeFavicon();
The curl command won’t work in JavaScript. Instead you want to use an ajax request. Here is an example of an ajax request:
// change "scene_1" to the scene you want to listen for
$(document).on('knack-scene-render.scene_1', function(event, scene) {
// change scene_1 and view_1 to the view that works with the logged-in user
$.ajax({
url: 'https://api.knack.com/v1/pages/scene_1/views/view_1/records',
type: 'GET',
headers: {
'Authorization': Knack.getUserToken(),
'X-Knack-Application-Id': Knack.application_id,
'Content-Type': 'application/json'
},
success: function(data) {
alert('Got records!')
console.log(data);
}
});
});
The above code would need to be updated to fit your purposes.
However hopefully that helps get you in the right direction.
@Hugo By the way I meant to ask you—Are your users logging in remotely or through the app as usual? If your users are logging in through the app then Remember Me is already 2 weeks. The documentation you shared is only necessary for remotely logged-in users. In your case it’s probably unnecessary. Cheers
through the app as usual. It is strange, I am sure it is logging me out (on my iPhone almost daily - I’ll make a point of checking this to be sure. It is on mobile devices I am trying to extend the duration for, not PCs - apologies if that wasn’t clear previously.