Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Push notification iOS simulator #1498

Open
6 of 10 tasks
IeuanWalker opened this issue Jul 8, 2024 · 1 comment
Open
6 of 10 tasks

[Bug]: Push notification iOS simulator #1498

IeuanWalker opened this issue Jul 8, 2024 · 1 comment
Labels
bug Something isn't working unverified This issue has not been verified by a maintainer

Comments

@IeuanWalker
Copy link

Component/Nuget

Push - Native (Shiny.Push)

What operating system(s) are effected?

  • iOS (13+ supported)
  • Mac Catalyst
  • Android (8+ supported)

Version(s) of Operation Systems

Hi, starting with xcode 14 iOS simulators now support push notifications -
https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes#Simulator:~:text=Simulator%20now%20supports,these%20tokens.%20(60974170)

Looking at the code it always returns 'NotSupported' if its a simulator - https://github.com/shinyorg/shiny/blob/1b4138d42835a71447cee7b4134c7b0ef25b2f21/src/Shiny.Push/Platforms/Apple/PushManager.cs#L95C9-L96C72

Hosting Model

  • MAUI
  • Native/Classic Xamarin
  • Manual

Steps To Reproduce

I have a 'Mac mini (M1)' running a 'iPhone 15 Pro 17.5' simulator and getting NotSupported result from await push!.RequestAccess();

Expected Behavior

Behave like a normal device and let me setup notifications

Actual Behavior

NotSupported

Exception or Log output

No response

Code Sample

No response

Code of Conduct

  • I have supplied a reproducible sample that is NOT FROM THE SHINY SAMPLES!
  • I am a Sponsor OR I am using the LATEST stable/beta version from nuget (v3.0 stable - ALPHAS are not taking issues - Sponsors can still send v2 issues)
  • I am Sponsor OR My GitHub account is 30+ days old
  • I understand that if I am checking these boxes and I am not actually following what they are saying, I will be removed from this repository!
@IeuanWalker IeuanWalker added bug Something isn't working unverified This issue has not been verified by a maintainer labels Jul 8, 2024
@aritchie
Copy link
Member

aritchie commented Jul 8, 2024

While the simulator may support it, .NET iOS doesn't always properly push through the entitlements for the simulator. I don't want the support that comes with opening this up right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified This issue has not been verified by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants