-
Notifications
You must be signed in to change notification settings - Fork 43
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 cancel button login #152
Comments
Hi @chaitba2. To the best of my knowledge, it's not possible to remove the "Cancel" button from the top left of Apple's presented authentication view. Swiftly Salesforce users Swiftly Salesforce will return a cancellation error if the user does tap "Cancel" - that is, you can detect the difference between the user canceling the Salesforce authentication vs. failing to authenticate. |
@chaitba2 I will mark this issue as 'closed' but if I didn't answer your question, please reopen. |
@chaitba2 I realized I forgot to address your second question: "Also is there a way to bypass login alert?" -- I'll reopen the issue now. Please elaborate on what you mean by "bypass"? What are you trying to accomplish? Do you want to authenticate to Salesforce with a different OAuth flow, e.g. username-password flow (which is not recommended)? Or are you trying to have Swiftly Salesforce not display the login form when the user's session has expired and your app makes a call to Salesforce? |
I want to skip the alert and go directly to the login page. Attached the screenshot of alert. in and to display login again using the following code with delay
Please correct me if am wrong. |
@chaitba2 personally I don't like to rely on the delay and I find it hard to 'reason' about what else is going on during that delay. Does it work for you? Why do you not want the alert to display? IMO the alert is common in iOS apps so users aren't put off by it and the code is cleaner. |
Hi,
I used your library to integrate Salesforce into my app.
It is easy to use and very helpful.
I would like to remove the cancel button from the Login widget. And am not able to find a way to remove it.
Could you please point me in the direction where I can achieve this implementation?
Also is there a way to bypass login alert?
Thanks in advance.,
The text was updated successfully, but these errors were encountered: