Particle.keepalive() in safe mode on electron with 1.4.2


Hi guys,
How should the Particle.keepalive() be used in the code, so that the safe mode would take the setting into it’s consideration? I tried setting this in setup but that’s definitely not working. I use 3rd party SIM, thus without safe mode honouring the keepalive settings my electron is unreachable after 30 seconds.

The over option would be to use the custom backup factory image, but on 1.4.2 this method seems to have a bug causing electron reboots with the assert error if anything is written into the factory backup memory area. I’ve describe this problem and how to recover here