apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 988 forks source link

Problems with iOS Wallet #967

Closed marcostadeusc closed 4 years ago

marcostadeusc commented 4 years ago

Bug Report

I have a project that I started to migrate to new WKWebView, but there is some plugins that I'm having some problems.

Problem

I have problem with cordova-plugin-passbook.

What is expected to happen?

Plugin works with WKWebView

What does actually happen?

When call the plugin, since it uses UIWebView, it's not working.

Information

Command or Code

I have the following references code on Xcode:

- (BOOL)shouldOverrideLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
    if(PKPassLibrary.isPassLibraryAvailable && [request.URL.pathExtension isEqualToString:@"pkpass"]) {
        [self downloadPass:request.URL success:nil error:nil];
        return YES;
    }

    return NO;
}

Environment, Platform, Device

Version information

Checklist

timbru31 commented 4 years ago

It’s a third party plugin and the developer needs to update it. Unfortunately, we can’t help with third party plugins.

marcostadeusc commented 4 years ago

So, is there any alternative would you recommend?

breautek commented 4 years ago

You can try one of its forks

https://github.com/AmTote/cordova-plugin-passbook appears to be the most recent fork, and it looks like its been refactored to use WKWebView.

Do note this is not an endorsement.