Festify / cordova-spotify-oauth

🔐 Easy Spotify authentication for Cordova / PhoneGap apps
MIT License
16 stars 20 forks source link

Error using Ionic 5 / Cordova 9 #23

Closed ervomk closed 5 years ago

ervomk commented 5 years ago

After installing this plugin and when i try to authorize the user, i get this error in the console:

ERROR: Method 'getCode:' not defined in Plugin 'SpotifyOAuth'

This is the swift support version that i use in the project. "cordova-plugin-add-swift-support": "2.0.2"

Any ideas how to solve this?

danpastori commented 5 years ago

@ervomk Yea, you had to add a single line of code above the method to notify Objective C: https://github.com/521dimensions/cordova-spotify-oauth/blob/develop/src/ios/SpotifyOAuthPlugin.swift#L15 I need to submit a PR but that worked.

ervomk commented 5 years ago

@danpastori It works, thank you very much.