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

The update popup for the IMMEDIATE update displays a close button (X) in the top right corner. #192

Open
badeshubham opened this issue Oct 29, 2024 · 3 comments

Comments

@badeshubham
Copy link

//code snippet
if (result.shouldUpdate) {
const forceUpdateVersion = await fetchForceUpdate();
const isForceUpdate = forceUpdateVersion === result.storeVersion;
let updateOptions = {};
if (Platform.OS === 'android') {
updateOptions = {
updateType: isForceUpdate
? IAUUpdateKind.IMMEDIATE
: IAUUpdateKind.FLEXIBLE,
};
}
console.log("updateOptions :", updateOptions)
await inAppUpdates.startUpdate(updateOptions);
}

//console log
console output ---> updateOptions : { updateType: 1 }

Issues:
• The update popup for the IMMEDIATE update displays a close button (X) in the top right corner.
• Users can dismiss the popup by pressing the back button, which should not be allowed in IMMEDIATE update mode.

Questions:
1. How can I hide the close button for an IMMEDIATE update?
2. How can I prevent the popup from closing when the back button is pressed for an IMMEDIATE update?

Thank you

@trdp30
Copy link

trdp30 commented Dec 19, 2024

@badeshubham Have you found any option for this?

@badeshubham
Copy link
Author

@trdp30 Hi Trideep Das, i have gone through many documents, but no solution found. If you found something that help us and please do share.

@trdp30
Copy link

trdp30 commented Dec 24, 2024

@badeshubham I've not debugged much. But if not possible with this library than I'm thinking to handle manually inside the application.

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

2 participants