Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to clear cache of account in android #414

Open
akshay3794 opened this issue May 10, 2023 · 3 comments
Open

Not able to clear cache of account in android #414

akshay3794 opened this issue May 10, 2023 · 3 comments

Comments

@akshay3794
Copy link

When using this with aws cognito for social login with aws cognito, when signing in ,not able to select gmail account again if selected previously.
Used ephemeralWebSession in iOS to tackle same problem but not working in android

-Android

  • used emulator and device for testing

  • CLI: 0.70.6
    "dependencies": {
    "@aws-amplify/cli": "^10.7.1",
    "@aws-amplify/core": "^5.0.11",
    "@react-native-async-storage/async-storage": "^1.17.11",
    "@react-native-community/blur": "^4.3.0",
    "@react-native-community/netinfo": "^9.3.7",
    "@react-native-community/push-notification-ios": "^1.10.1",
    "@react-native-firebase/app": "^16.7.0",
    "@react-native-firebase/messaging": "^16.7.0",
    "@react-native-masked-view/masked-view": "^0.2.8",
    "@react-navigation/bottom-tabs": "^6.5.3",
    "@react-navigation/drawer": "^6.5.7",
    "@react-navigation/native": "^6.1.2",
    "@react-navigation/stack": "^6.3.11",
    "amazon-cognito-identity-js": "^6.1.2",
    "aws-amplify": "^5.0.11",
    "aws-amplify-react-native": "^7.0.2",
    "axios": "^1.2.6",
    "deprecated-react-native-prop-types": "^2.2.0",
    "jail-monkey": "^2.8.0",
    "lottie-react-native": "^5.1.4",
    "moment": "^2.29.4",
    "react": "18.1.0",
    "react-native": "0.70.6",
    "react-native-animated-icons": "^1.0.5",
    "react-native-device-info": "^10.3.0",
    "react-native-dropdown-picker": "^5.4.4",
    "react-native-elements": "^3.4.3",
    "react-native-flash-message": "^0.3.1",
    "react-native-gesture-handler": "^2.9.0",
    "react-native-gradle-plugin": "^0.71.10",
    "react-native-image-picker": "^5.3.1",
    "react-native-inappbrowser-reborn": "^3.7.0",
    "react-native-modal": "^13.0.1",
    "react-native-orientation-locker": "^1.5.0",
    "react-native-otp-textinput": "^0.0.9",
    "react-native-picker": "^4.3.7",
    "react-native-push-notification": "^8.1.1",
    "react-native-reanimated": "^2.14.4",
    "react-native-safe-area-context": "^4.5.0",
    "react-native-screens": "^3.19.0",
    "react-native-size-matters": "^0.4.0",
    "react-native-sound": "^0.11.2",
    "react-native-sound-player": "^0.13.2",
    "react-native-svg": "^13.7.0",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-vector-icons": "^9.2.0",
    "react-native-video": "^5.2.1",
    "react-native-video-controls": "^2.8.1",
    "react-native-video-player": "^0.14.0",
    "react-native-youtube-iframe": "^2.2.2",
    "react-navigation": "^4.4.4",
    "react-navigation-stack": "^2.10.4",
    "rn-wave-bottom-bar": "^2.2.10",
    "rxjs": "^7.8.0",
    "sp-react-native-in-app-updates": "^1.3.1",
    "uri-scheme": "^1.1.0"
    },
    "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "0.72.3",
    "react-test-renderer": "18.1.0"
    },

Using it with Aws auth for opening browser in app.

async function urlOpener(url, redirectUrl) {
await InAppBrowser.isAvailable();
const { type, url: newUrl } = await InAppBrowser.openAuth(url, redirectUrl, {
showTitle: true,
enableUrlBarHiding: true,
enableDefaultShare: false,
ephemeralWebSession: true,
forceCloseOnRedirection:true,
showInRecents:false
})
if (type == 'success') {
Linking.openURL(newUrl);
}
}

Amplify.configure({...awsmobile, "oauth" : {
...oauth,
urlOpener
}})

@luisfuertes
Copy link

Same problem here

@alexKudryavtsev-web
Copy link

@luisfuertes and where here? help me, please

@mrazekrad
Copy link

Same problem. Any solution for Android?

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

No branches or pull requests

4 participants