We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm still using Xamarin (not moved to maui yet) Using OnesignalSDK.Xamarin 4.3.5
Here is what i do at App.xaml.cs initially
OneSignal.Default.RequiresPrivacyConsent = true; OneSignal.Default.NotificationOpened += HandleNotificationOpened; OneSignal.Default.Initialize(settings.ONESIGNAL_APPID); OneSignal.Default.PrivacyConsent = false;
Here is AppDelegate.cs
OneSignal.Default.NotificationOpened += HandleNotificationOpened; OneSignal.Default.Initialize(settings.ONESIGNAL_APPID); OneSignal.Default.PromptForPushNotificationsWithUserResponse();
And just after user is authenticated at login page
await OneSignal.Default.PromptForPushNotificationsWithUserResponse(true); await OneSignal.Default.SetExternalUserId(settings.ONESIGNAL_EXTERNALUSERID); ////////////code never reaches here OneSignal.Default.PrivacyConsent = true;
This was working before for both android and ios (for this app we published last year). But now it stucks for ios.
If i comment out PromptForPushNotificationWithUserResponse, app opens but onesignal mentions "Missing Push Capability"
What am i doing wrong here? Or do you have any advice?
This took my whole day, any help would be appreciated.
Regards
Ender
The text was updated successfully, but these errors were encountered:
Now tested, it is not working for android also. It stucks at the same point.
Do i have to upgrade to OnesignalSdk.DotNet? Or am i missing something?
Sorry, something went wrong.
No branches or pull requests
How can we help?
Hi,
I'm still using Xamarin (not moved to maui yet)
Using OnesignalSDK.Xamarin 4.3.5
Here is what i do at App.xaml.cs initially
Here is AppDelegate.cs
And just after user is authenticated at login page
This was working before for both android and ios (for this app we published last year). But now it stucks for ios.
If i comment out PromptForPushNotificationWithUserResponse, app opens but onesignal mentions "Missing Push Capability"
What am i doing wrong here? Or do you have any advice?
This took my whole day, any help would be appreciated.
Regards
Ender
Code of Conduct
The text was updated successfully, but these errors were encountered: