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
16 stars 5 forks source link

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

Open Frank9619 opened 10 months ago

Frank9619 commented 10 months ago

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

SC-HeinrichG commented 5 months ago

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 commented 5 months ago

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 commented 1 month ago

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

SC-HeinrichG commented 1 month ago

Good day,

That is a negative. We decided to implement a different 3rd party.

Heinrich Glover

Developer

[signature_774479978]

M: 27 72 303 5605 | W: www.securecitizen.co.zahttp://www.securecitizen.co.za/ | A: Building A, Suite 2, Cotillion Place, 22 Techno Ave, Techno Park, Stellenbosch, 7600

[signature_3899392277]https://securecitizen.co.za/identity-fraud-theft-protection-services-secure-citizen/

[signature_4090389410]https://play.google.com/store/apps/details?id=com.onevault.sc_consumer_maui[signature_1015348171]https://apps.apple.com/za/app/secure-citizen/id1671813454

Or Register Onlinehttps://securecitizen.app/

This email and its contents are privileged and confidential and for the use of the addressee only. Should you have received this email in error please notify us by replying directly to the sender and thereafter delete the email and any attachments from your system. You warrant that you are legally entitled to disclose any personal information sent by you to Secure Citizen Pty Ltd, that Secure Citizen Pty Ltd is legally entitled to process this personal information for you or on your behalf for the purpose(s) requested or instructed by you, and that you have obtained the necessary consents from the data subject(s) to disclose and process the personal information. © Copyright: Copyright in this document vests in Secure Citizen Pty Ltd. No part of this document may be reproduced in whole or in part, used for commercial gain or disclosed or transmitted in any form whatsoever, without the prior written consent of the copyright owner, and to do so will be unlawful.


From: shahrozjan @.> Sent: Friday, September 27, 2024 7:34 PM To: OneSignal/OneSignal-DotNet-SDK @.> Cc: Heinrich Glover @.>; Comment @.> Subject: Re: [OneSignal/OneSignal-DotNet-SDK] [Bug]: Xamarin Forms Initialize Error [IOS Only] (Issue #90)

Hi, were you able to fix this issue @yaseenChhttps://github.com/yaseenCh ?

— Reply to this email directly, view it on GitHubhttps://github.com/OneSignal/OneSignal-DotNet-SDK/issues/90#issuecomment-2379756839, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGMPS3EQ3RR3UED7SS267L3ZYWJIXAVCNFSM6AAAAABCAB66B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZG42TMOBTHE. You are receiving this because you commented.Message ID: @.***>