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

Remove menu tab and navigation bar (server change menu) #2506

Open
johnjeremih opened this issue Jan 18, 2024 · 2 comments
Open

Remove menu tab and navigation bar (server change menu) #2506

johnjeremih opened this issue Jan 18, 2024 · 2 comments

Comments

@johnjeremih
Copy link

I would like to know how I can override the loadLoginPageInChrome function to be able to remove the navigation bar. I'm currently overriding the LoginActivity class to be able to have a custom view.

image

@johnjeremih johnjeremih changed the title Remove menu tab and navigation bar Remove menu tab and navigation bar (server change menu) Jan 18, 2024
@wmathurin
Copy link
Contributor

There is no easy/clean way of doing that today. You would have to create subclasses for LoginActivity and OAuthWebviewHelper. Initialize SalesforceSDKManager using your LoginActivity class. Have you LoginActivityClass create you OAuthWebviewHelper. And in your OAuthWebviewHelper you would have to override (with some code duplication) methods that call doLoadPage, because doLoadPage is private and calls loadLoginPageInChrome which is also private.
Alternatively you could fork Mobile SDK. Both options are not very appealing.

One question, do you need to use advanced authentication? With regular authentication (which uses a web view), it's a lot easier to remove the navigation bar.

@johnjeremih
Copy link
Author

I'm using the webview, but I'm not able to remove the navigation bar

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

2 participants