-
Notifications
You must be signed in to change notification settings - Fork 5
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]: .Net Maui -> Notification Permission Prompt is not appearing. #63
Comments
@palanikumar32 Could you try |
Thanks for the reply, already tried no luck. |
@palanikumar32 Could you try enabling verbose logging and reporting what you see in the logs? Do any other OneSignal methods work? Also is the behavior the same for both iOS and Android? |
Here i attached the logs, unfortunately right now I couldn't test the same behavior in IOS. |
@palanikumar32 I apologize for the late response. I am not able to reproduce this issue on Android or iOS. We are doing a release soon that updates the native iOS and Android SDK dependencies, uses .net7 tools instead of legacy Xamarin build tools, and fixes other various bugs. When that release is available I will ping here again and we can try to reproduce. I believe that this issue may be resolved by that release. |
For me, this was happening when I was calling |
Hello everyone, apologies that this issue has gone stale. Please upgrade to the latest version of the SDK and open a new issue if you are still having trouble. Thanks! |
What happened?
Notification Permission Prompt not appearing if one signal is not initialized in constructor of App.xaml.cs or MainPage.xaml.cs
We want to subscribe one signal only after the user is logged in. So we moved the below line to login button click
OneSignal.Initialize("xxxxxxxxxxx");
after that Notification Permission Prompt is not appearing. We tried both
OneSignal.User.PushSubscription.OptIn();
and
OneSignal.InAppMessages.AddTrigger("showPrompt", "true");
Steps to reproduce?
What did you expect to happen?
Notification Permission Prompt is not appearing.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: