# In .NET MAUI app, how can I avoid the iOS permission alert?

**URL:** <https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [May 20, 2024, 10:26am UTC](https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497 "2024-05-20T10:26:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkagarawal87](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nkagarawal87](https://community.auth0.com/u/nkagarawal87)\
**Post date:** [May 20, 2024, 10:26am UTC](https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497/1 "2024-05-20T10:26:16Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
In .NET MAUI app, how can I avoid the iOS permission alert?

 ![Alter](https://global.discourse-cdn.com/auth0/original/3X/7/0/7070eebd87b735ec165697692da266b39bf72102.png)

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 20, 2025, 5:09pm UTC](https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497/3 "2025-03-20T17:09:08Z")

</div>

Hi @nkagarawal87,

Welcome to the Auth0 Community and sorry for the late reply.

To provide a bit of context, the main reason this prompt was added was to provide users more context about why a third-party website is about to appear, as well as surface the website domain to the user in a system-level prompt that can’t be faked by the app, more about this can be checked from this [okta blog](https://developer.okta.com/blog/2022/01/13/mobile-sso).

That alert box is displayed and managed by `ASWebAuthenticationSession` , because by default this API will store the session cookie in the shared Safari cookie jar. This makes single sign-on (SSO) possible. According to Apple, that requires user consent.

There is an out of the box solution only for the Auth0.swift SDK, detailed in this [Knowledge Article](https://community.auth0.com/t/ios-permission-popup-during-login-auth0-swift-sdk/151219).

For the MAUI integration, unfortunately there is no such existing solution at the moment in our current SDK. It is mentioned in this [Knowledge Article](https://community.auth0.com/t/using-prefers-ephemeral-webbrowser-session-in-auth0-maui-sdk/125695) that the **ASWebAuthenticationSessionBrowser** class is not yet exposed, so the workaround would be creating a custom Browser implementation.

i hope this helps your use case and provides general information as well.  
Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![corne-ac-work](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/corne-ac-work/32/72928_2.png) [@corne-ac-work](https://community.auth0.com/u/corne-ac-work)\
**Post date:** [March 31, 2025, 9:34am UTC](https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497/4 "2025-03-31T09:34:14Z")

</div>

Good day @remus.ivan, hope all is well!

A related question on the discussed dialog, we are implementing an automatic logout process after a period of inactivity on our C# MAUI Application. This process sends a Logout Request to the website with the Id Token Hint, which triggers the logout flow. On Android, the process works as expected, the web dialog opens, logs the user out, and then closes automatically.

However, on iOS, the automatic logout is interrupted by the above discussed confirmation dialog that prompts the user to continue to the logout page before proceeding. This additional step prevents the logout from happening seamlessly and blocks the automatic process.

Would you be able to suggest an alternative approach to handle this? Ideally, we would prefer to bypass the confirmation dialog entirely to maintain a smooth logout experience.

Best regards,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 14, 2025, 9:34am UTC](https://community.auth0.com/t/in-net-maui-app-how-can-i-avoid-the-ios-permission-alert/134497/5 "2025-04-14T09:34:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
