All true, Ciya. With the technical correction that polar bears do not live on ice shelves or glaciers, but depend on seasonal sea ice for their hunting of seals, mainly. They ain't going to hunt on ice shelves, which are hundreds of feet thick, or glaciers, which have no potential prey anywhere near.
But the seasonal sea ice in the Arctic has also declined greatly in recent years, and even in what would be considered normal summers by historic standards, didn't reach the Arctic shorelines, generally. Polar bears will eat what they can find, and that has long included raids on human food sources, when possible.
If you live in Kaktovik, which is a native community located on the coast of the Beaufort Sea in northernmost Alaska, polar bears are just part of the landscape, and you deal with them when necessary.
As an aside, polar bears do not hibernate, in contrast to black and brown (grizzly) bears. Pregnant females will go without food for months after the birth of cubs, but will not sleep during this time.
caw