Skip to content

Conversation

@reslear
Copy link
Collaborator

@reslear reslear commented Aug 7, 2021

no need check platform:

const platform = Capacitor.getPlatform()

if (platform === "web") {
  GoogleAuth.init();
}

only

GoogleAuth.init();

TODO:

  • iOS
  • Android

@reslear reslear merged commit 68fcf8b into CodetrixStudio:master Aug 17, 2021
@reslear reslear deleted the fix/unimplemented-init branch August 17, 2021 10:32
@joeflateau
Copy link
Contributor

@reslear try this instead

    @objc(init:)
    func initSwift(_ call: CAPPluginCall) {
        call.unimplemented("Not available on iOS")
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants