Skip to content

SDA-SE/cordova-plugin-ios-aswebauthenticationsession-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-ios-aswebauthenticationsession-api

Cordova Plugin for iOS 12 ASWebAuthenticationSession API. Originally forked from rak13/cordova-plugin-ios-aswebauthenticationsession and updated to address an issue present after updating to iOS 13.

usage

window.plugins.ASWebAuthSession.start("myappurlscheme://dummy/staff", 'https://linktoopen.someplace.com/index.html',
function(msg){
  console.log("Success ", msg);
}, function (err) {
    console.log("Error " + msg);
});

Additional information

iOS 13 introduced a requirement that ASWebAuthenticationSession needs a presentationContextProvider to provide a "display context in which the system can present an authentication session to the user."

The changes in this plugin should address an error that was thrown when trying to use ASWebAuthenticationSession after updating to iOS 13: "Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 84.7%
  • JavaScript 15.3%