I have a local bear that is getting on my truck and taking bags of feed.
And leaving trails of garbage and half consumed feed bags etc.
Need to spray something in the area that will tell her to look elsewhere.
The Cubs are cute but have only gotten within 6-8 ft of them.
Sorry to tell you, nothing gets rid of a hungry bear.
Not ammonia.
Not pepper spray.
What you are describing is what we have had to put up with for the last 15 years.
In my state, they could even fine you for unintentionally feeding the bears because they get into your trash and they are more protected than humans.
Since most people in my area have grown tired of having unanswered calls until 3 days after the initial report, most people use 22lr to the gut or if they are secluded enough, a 12 gauge to the boiler room and use the triple s method.
Shoot.
Shovel.
Shut up.
PS. If they have cubs, they will not travel far and will keep coming back on a short loop through the area. Usually about every 3 days.
It takes almost a full year for the momma to push out the cubs. So, you'll be stuck with them a while if they found your garbage bin.
At that time, they are often coming into heat again and ready to mate with Poppa bear again who will be more than happy to oblige and the routine starts over again and she will keep coming back to the garbage piles that she has learned where they are and will bring the next generation to the same places to show them were your trash is.
Pss. Don't get close to the cubs. Momma will eat your face if she gets scared enough or feels cornered. They can run about 35mph and are a lot more agile than many people think. A scared bear is a dangerous bear.