SDK Version: 5.0.4
Platform: Android
Browser Console Screenshots: nothing related
await Web3AuthFlutter.init(
Web3AuthOptions(
clientId: Env.web3AuthClientId,
network: Network.sapphire_mainnet,
redirectUrl: resolveRedirectUrl(),
whiteLabel: WhiteLabelData(
appName: "Podium",
mode: ThemeModes.dark,
),
),
);
await Web3AuthFlutter.initialize();
/////
await Web3AuthFlutter.login(
LoginParams(
loginProvider: Provider.google,
mfaLevel: MFALevel.NONE),
);
and
Uri resolveRedirectUrl() {
if (Platform.isAndroid) {
return Uri.parse('podium://com.web3podium/web3auth');
} else {
return Uri.parse('com.web3podium://web3auth');
}
}
in Android manifest:
<data android:scheme="podium" android:host="com.web3podium" android:path="/web3auth" />
app is stuck in please don't reload the page
state, no redirection
w3abot
November 22, 2024, 9:53pm
2
Hi Mohsen,
Thank you for providing detailed information regarding your issue. Here’s a summary of the data we’ve gathered for the support team:
SDK Details:
SDK: PnP Flutter SDK
Version: 5.0.4
Platform: Android
Issue Description:
When attempting to use web3Auth
, the app doesn’t redirect back or show an error.
Code Snippets:
Initialization and login code:
await Web3AuthFlutter.init(
Web3AuthOptions(
clientId: Env.web3AuthClientId,
network: Network.sapphire_mainnet,
redirectUrl: resolveRedirectUrl(),
whiteLabel: WhiteLabelData(
appName: "Podium",
mode: ThemeModes.dark,
),
),
);
await Web3AuthFlutter.initialize();
await Web3AuthFlutter.login(
LoginParams(
loginProvider: Provider.google,
mfaLevel: MFALevel.NONE,
),
);
Redirect URL Function:
Uri resolveRedirectUrl() {
if (Platform.isAndroid) {
return Uri.parse('podium://com.web3podium/web3auth');
} else {
return Uri.parse('com.web3podium://web3auth');
}
}
Android Manifest:
<data android:scheme="podium" android:host="com.web3podium" android:path="/web3auth" />
Browser Console Screenshots: No relevant messages noted.
Since you mentioned that there are no error messages, can you please verify that the redirect URL is correctly configured in both the Web3Auth settings and the app’s intent filters? It’s worth checking those aspects to ensure they match.
The support team will follow up on this issue shortly. If you have any additional information or screenshots, feel free to share!
Thanks for reaching out, and we’re here to help!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
system
Closed
November 25, 2024, 7:54am
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.