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 · 0 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

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

1 participant