Comments (4)
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);
from react-native-check-version.
hi, now it worked but it shows "needsUpdate" true, but i have the latest version.
{"bundleId": "com.project.cronimetcrm", "lastChecked": "2024-04-06T03:50:45.664Z", "needsUpdate": true, "notes": "", "notice": "Invalid version. Must be a string. Got type \"object\".", "platform": "android", "releasedAt": "2024-04-06T03:50:45.663Z", "updateType": "minor", "url": "https://play.google.com/store/apps/details?id=com.project.cronimetcrm&hl=us", "version": "1.0.1"}
*** EDIT ***
i added currentVersion to option and now its shows correct info
{"bundleId": "com.project.cronimetcrm", "lastChecked": "2024-04-06T03:56:42.409Z", "needsUpdate": false, "notes": "", "platform": "android", "releasedAt": "2024-04-06T03:56:42.409Z", "updateType": null, "url": "https://play.google.com/store/apps/details?id=com.project.cronimetcrm&hl=us", "version": "1.0.1"}
from react-native-check-version.
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
from react-native-check-version.
now, the second thing is with IOS.
the error is - Error: App for this bundle ID not found.
this error is not only with "react-native-check-version" package, but also with similar packages.
This is the first time I've received feedback.
And the ios buindleid is different from android.
options:
Object { "bundleId": "com.project.cronimetcrmv2", "country": "et", "currentVersion": "1.0.1", }
result:
Object { "bundleId": "com.project.cronimetcrmv2", "country": "et", "error": [Error: App for this bundle ID not found.], "lastChecked": "2024-04-06T08:28:20.050Z", "needsUpdate": false, "notes": "", "platform": "ios", "url": null, "version": null, }
from react-native-check-version.
Related Issues (20)
- Why a custom backend? HOT 2
- [Question] Have you changed anything in the backend after Google Play Store UI update? HOT 11
- [android] Invalid time value HOT 2
- The check version method issue HOT 7
- problem severity 1 HOT 9
- Publish 1.0.14 tag to npm HOT 1
- [Question] Internal version number HOT 1
- It gives me old version however when I visit the store it's already updated HOT 2
- Require cycle: node_modules/semver/classes/comparator.js -> node_modules/semver/classes/range.js -> node_modules/semver/classes/comparator.js HOT 1
- Patch for Require cycle: node_modules/semver/classes/comparator.js -> node_modules/semver/classes/range.js -> node_modules/semver/classes/comparator.js HOT 2
- Does not show the update button on play store when the update is available HOT 1
- Does this work with internal testing as well. HOT 3
- [Android] version is null HOT 2
- Android failing to get current play store version HOT 2
- checkVersion is not working in latest version 1.0.20 HOT 5
- Adding error field to the TS interface HOT 1
- How do you solve the issue when the App is probably scrapable but still not visible in app store for users in their phones? HOT 4
- Support for AppGalleryConnect (Huawei) HOT 1
- getting error on Android HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-check-version.