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]: Xamarin Forms Initialize Error [IOS Only] #90

Open
1 task done
Frank9619 opened this issue Jan 18, 2024 · 4 comments
Open
1 task done

[Bug]: Xamarin Forms Initialize Error [IOS Only] #90

Frank9619 opened this issue Jan 18, 2024 · 4 comments

Comments

@Frank9619
Copy link

What happened?

When i try to initialize the SDK, in IOS device, it return this error (Image below):
Message: "Object reference not set to an instance of an object"
Source: OneSignalSDK.DotNet.iOS

image

Steps to reproduce?

1. Create an empty Xamarin Forms project.
2. Install OneSignal-DotNet-SDK package from NuGet.
3. Initialize the OneSignalSDK object inside main App file

What did you expect to happen?

The initialization works like Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SC-HeinrichG
Copy link

Here to Help.
I had the same type of error on iOS.
Did you configure iOS on the OneSigal DashBoard?
https://documentation.onesignal.com/docs/ios-p8-token-based-connection-to-apns
I also needed to add these keys in my iOS Info.plist to make it not crash our app, from reading the log output from our App.

UIBackgroundModes

fetch
remote-notification
processing

@yaseenCh
Copy link

Here to Help. I had the same type of error on iOS. Did you configure iOS on the OneSigal DashBoard? https://documentation.onesignal.com/docs/ios-p8-token-based-connection-to-apns I also needed to add these keys in my iOS Info.plist to make it not crash our app, from reading the log output from our App.

UIBackgroundModes fetch remote-notification processing

I have the same issue in Dot net maui its work fine for android but in IOS its gives error null refrence when i call this OneSignal.Initialize("My app id ");
i am using this nuget packageOneSignalSDK.DotNet 5.1.3

can you please help me on this issue

@shahrozjan
Copy link

Hi, were you able to fix this issue @yaseenCh ?

@SC-HeinrichG
Copy link

SC-HeinrichG commented Oct 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants