Search code examples
iospaypalios10braintree

Blank page open when I tap on Paypal from BrainTree payment page in iOS 10


I have integrated BRAINTREE SDK into my app. Also I have following all the steps of PayPal/Client-Side Implementation.

It is working perfectly in iOS 9. But PAYPAL functionality is not working in iOS 10 only. When I tap on the PAYPAL button from the below 1st screen, blank page has been opened as shown in below 2nd image.

enter image description here

enter image description here

But when I want to pay with PAYPAL in iOS 9, then it is redirecting following page same as below image, but not working in iOS 10 Devices.

enter image description here

I am not sure why this happens for iOS 10 only.

Also I have added this issue on GitHub.

Any help would be appreciated.


Solution

  • Finally, got the solution. It happens due to UITabBarController which is implemented into my app.

    So earlier I was presenting payment screeen (BTDropInViewController) same as below :-

    [self presentViewController:navigationController animated:YES completion:nil];
    

    So Now I am using this instead of above line,

    [APPDELEGATE.navigationController presentViewController:navigationController animated:YES completion:nil];
    
    //#define APPDELEGATE ((AppDelegate *)[[UIApplication sharedApplication] delegate]) //Global object of AppDelegate
    //@property (strong, nonatomic) UINavigationController *navigationController; //which is declared into AppDelegate.h
    

    Hope, this is what you're looking for. Any concern get back to me. :)