Hello,
how can I make my app available for iOS >= 9.3 when using the new framework “UserNotifications” (since iOS10)?
For sure, I need to check the actual version to distinguish how I fire notifications:
if not (UIDevice.currentDevice.systemVersion.compare('10.0') options(NSStringCompareOptions.NSNumericSearch) = NSComparisonResult.NSOrderedAscending) then
But the problem is that as soon as I add the reference to my project <Reference Include="UserNotifications" />
, the app won’t be runnable anymore (will crash at startup). Of course that makes sense because there can’t be found such framework. Therefore I imagined something like
{$IFDEF IOS10}
<Reference Include="UserNotifications" />
{$ENDIF}
But I guess this constellation isn’t available
Is there any possibility to solve this problem?
Thanks and regards
Benjamin