-
Notifications
You must be signed in to change notification settings - Fork 25
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
cant get version result in Android #55
Comments
you need add manual app id. import { CheckVersionOptions, checkVersion } from "react-native-check-version";
const options: CheckVersionOptions = {
bundleId: "com.example.id", // Replace with your bundle ID
};
const appVersion = await checkVersion(options); // Handle the response
console.log(appVersion);
console.log("App version:", appVersion.version);
console.log("App needs update:", appVersion.needsUpdate);
console.log("Update URL:", appVersion.url); |
hi, now it worked but it shows "needsUpdate" true, but i have the latest version.
*** EDIT *** |
great, you need re-run yarn android or npm android. for auto check your bundleId and currentVersion. const appVersion = await checkVersion(); // now you can remove option |
now, the second thing is with IOS. options: result: |
RESULT:
Got version info: {"bundleId": null, "country": "us", "error": [Error: App with bundle ID "null" not found in Google Play.], "lastChecked": "2024-04-04T03:59:10.402Z", "needsUpdate": false, "notes": "", "platform": "android", "url": null, "version": null}
The text was updated successfully, but these errors were encountered: