Problems switching power inputs (Power Shield)

Hi,

I’m pretty new to the Photon platform, so bear with me…

I’ve hooked up the Power Shield with a solar panel (DC input) and the supplied LiPo battery. The issue I seem to have is that the device stops working when it switches between solar and battery power.

I’m publishing metrics to the Particle Logs and also to Ubidots, and it seems the code I’m running stops working when the device goes from battery to solar, or the other way around.

Has anyone seen this before, how can I go about troubleshooting this?

How does the switching between solar and battery happen? As in how did you know that that actually happened and caused the issue?