OneSignal / OneSignal-DotNet-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your .NET app with OneSignal. https://onesignal.com
MIT License
14 stars 4 forks source link

[question]: How to trigger iOS prompt for Critical Alerts? #106

Closed T-T-P closed 1 month ago

T-T-P commented 1 month ago

How can we help?

I am currently triggering the iOS (and android) prompt from .NET MAUI by using the method

await OneSignal.Notifications.RequestPermissionAsync(true);

This allows the user to approve 'normal' push notifications however it does not allow triggering of the special prompt for Critical Alerts to be accepted, is there a way of triggering this prompt using the current OneSignal-DotNet-SDK (I have obtained relevant entitlements from Apple)?

Code of Conduct

T-T-P commented 1 month ago

Turns out the solution is to write your own native implementation and call that directly after you have gained the original OneSignal permission.