-
Notifications
You must be signed in to change notification settings - Fork 296
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
Delegate method not invoked #383
Comments
@aodhol On iOS11+ a SFAuthenticationSession is used for PayPal payments and does not require the delegate methods for presentation/dismissal. Let us know if you have additional questions or feedback. |
@demerino But delegation or some means of knowing the lifecycle stage is surely
needed to keep the UI in sync with what’s going on? I have a spinner on my
button for example, how would I know to remove it if say the user cancels? There's also a delay between tapping the button and the SafariViewController appearing, leaving the user to wonder what's happening?
…On Mon, 22 Jan 2018 at 02:17, David Merino ***@***.***> wrote:
@aodhol <https://github.com/aodhol>
See: #361 (comment)
<#361 (comment)>
On iOS11+ a SFAuthenticationSession
<https://developer.apple.com/documentation/safariservices/sfauthenticationsession>
is used for PayPal payments and does not require the delegate methods for
presentation/dismissal.
Let us know if you have additional questions or feedback.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#383 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQw-kfG7lpkxCjeB9UxdfQcoNA_JU-aks5tM--5gaJpZM4RmCcz>
.
|
@aodhol This makes sense. In this case, we would likely need to add a new generic lifecycle event that isn't coupled to |
@demerino shall I leave this open then? |
Yes, we appreciate the feedback! |
@aodhol |
@demerino I've tested this on the |
@aodhol did you implement the BTAppSwitchDelegate? I tested myself and it works for me, both of the methods are getting called |
Yes, I did implement the delegate..
…On 4 April 2018 at 14:49, ancafeurdean09 ***@***.***> wrote:
@aodhol <https://github.com/aodhol> did you implement the
BTAppSwitchDelegate? I tested myself and it works for me, both of the
methods are getting called
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#383 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQw-ulQv-mRa7Go1Zp51JvVykbR-2G1ks5tlM9wgaJpZM4RmCcz>
.
|
I followed the steps described in here: https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4 when I first implemented this and now I just added those methods for testing purposes and I saw it's working fine, at least for me |
Yep, followed the exact same steps and none of the delegate methods get
invoked..
…On 4 April 2018 at 14:52, ancafeurdean09 ***@***.***> wrote:
I followed the steps described in here: https://developers.
braintreepayments.com/guides/paypal/client-side/ios/v4 when I first
implemented this and now I just added those methods for testing purposes
and I saw it's working fine, at least for me
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#383 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQw-mUKDD4nB7WueygeJyjKTVS9f73vks5tlNAsgaJpZM4RmCcz>
.
|
@ancafeurdean09 @aodhol Thanks for trying out the new methods. I'm not sure why it isn't working for aodhol. Can you share the methods you implemented and the code snippet where you set the delegate? |
The delegate is in an extension on the view controller as follows:
|
I don't see the new optional delegate methods:
|
@demerino that was the problem :[ Thanks, and sorry! |
General information
Issue description
Delegate methods not getting invoked even though the SafariViewController is shown and dismissed via the big blue button.
`
`
The text was updated successfully, but these errors were encountered: