I don’t know if there’s any tech that can prevent a dangerous gun from being a dangerous gun. But it’s something worth looking into
It was something myself and ddm discussed before.
Geofencing similar to electronic tags used on offenders so that guns only function is designated areas such as the owner's home (for home defence purposes), shooting ranges and hunting areas.
If that's too much for some then using the same technology to disable guns in certain public places such as schools, colleges and universities (for obvious reasons) as well as perhaps heavy civilian areas such as transport hubs, shopping malls, concert venues, sports stadiums.
Then there's fingerprint locking so guns only unlock for registered owners and only licensed gun stores can reset and then reregister new owners so no gun can be sold without a federal record being recorded.
Obviously these technologies are not foolproof and some may have the knowhow and capability to circumvent them but it will result in guns becoming safer.
Some question how it will get older guns out of circulation in which case you offer incentives to collectors to trade in old weapons for new ones with the new safety features. You have amnesties for people simply giving up old weapons. Over time all newly manufactured weapons will have to have the new technology as standard (as certain safety features of cars do).
It won't be an overnight solution but it solves the right to own guns issue as well as potentially helping prevent shootings.
Some then argue against the prohibitive cost of implementing these solutions but as with cars eventually the costs lessen the more prevalent they become. No one now complains about the costs of seatbelts and airbags in cars when buying them.