Closed mesqueeb closed 3 years ago
I usually access getDeviceInfo
when bootstrapping the app and save it in a global object I can access whenever I need.
In order to avoid the registerWebPlugin(SignInWithApple);
I just import the module (that already make this call, only on web environment due to capacitor mecanism :
import '@capacitor-community/apple-sign-in'; // This call avoid needs to call registerWebPlugin
import {
SignInWithAppleResponse,
SignInWithAppleOptions,
} from '@capacitor-community/apple-sign-in';
import {Plugins} from '@capacitor/core';
Hope this helps !
So the docs say we need to execute
but is this only for the web?
If the user uses the plugin on iOS capacitor app, what is the recommended way to not execute
registerWebPlugin(SignInWithApple);
for that case?getDeviceInfo
is async, so it's not ideal right?