You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iOSNotificationsManager.RequestPermissionAsync (System.Boolean fallbackToSettings)
System.ExecutionEngineException: Attempting to JIT compile method 'void Com.OneSignal.iOS.OSNotifications:RequestPermission (Com.OneSignal.iOS.OSUserResponseBlock,bool)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
Steps to reproduce?
1) Create Xamarin.Forms app.
2) Add OneSignalSDK.DotNet packages for iOS, Android and Shared projects.
3) Build Release with Linked SDK assemblies, then deploy iOS app to iPhone device.
4) Run App.
5) Call RequestPermissionAsync will get the error.
What did you expect to happen?
Show notification prompt on iOS app.
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Are you able to reproduce the error on Debug builds?
==> not tried to build with Debug.
Additional information: The same project built on the latest MacOS (Sonoma), Xcode (15.0.1), Mono (6.12.0.188), Xamarin.iOS (16.4.0.23) and Release configuration on M2 chip (ARM64), the issue was not happened.
@TryLastOne I am not able to reproduce this issue but it seems similar to these xamarin/xamarin-macios#12416 dotnet/maui#7396
The newer releases of this SDK will be using the .net7 build tool chain instead of the legacy Xamarin build tools.
What happened?
iOSNotificationsManager.RequestPermissionAsync (System.Boolean fallbackToSettings)
System.ExecutionEngineException: Attempting to JIT compile method 'void Com.OneSignal.iOS.OSNotifications:RequestPermission (Com.OneSignal.iOS.OSUserResponseBlock,bool)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
Steps to reproduce?
What did you expect to happen?
Show notification prompt on iOS app.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: