shinyorg / shiny

.NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)
https://shinylib.net
MIT License
1.43k stars 227 forks source link

[Feature Request]: Support Push notifications for iOS Simulator #1460

Closed nielscup closed 4 months ago

nielscup commented 4 months ago

Summary

iOS Simulator also supports push notifications. But the PushManager prevents us from registering for PushNotifications: if (AppleExtensions.IsSimulator)

API Changes

remove if (AppleExtensions.IsSimulator) in PushManager

Intended Use Case

Test push notifications on iOS simulator

Code of Conduct

aritchie commented 4 months ago

The problem is that people assume push is actually working. APNS is not available on simulators, only the ability to test payloads against the app. This has been a constant source of pain to support even if I document.

You technically only need the notification permission from iOS. You can do this with an compiler ifdef yourself and ignore RequestAccess while on the simulator