I´m having the same problem and was trying to implement based on this post:
https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/
I´m going to test your solution the first chance I get but have you tested to see if it maintains compatibility with previous iOS builds?