OpenUrl not working on iOS10

My app uses openURL to open Google Maps app.
It works on iOS 9 but not on iOS 10.

I understand that this method was deprecated on iOS 10, and there's a new one with more parameters.
However, I saw everywhere that it should still work, and changing to the new method will only prevent a warning in the xCode.
I also want to still support iOS 9 and lower.