Comments (8)
@skol101 I assume the iTunes API is returning an empty response when the app is not available on the US App Store. In that case, there is no version of the app to upgrade, and thus there should not be a message or alert displayed to the user. Can you explain more about your issue, including the messages from the log, and possibly any screenshots?
from upgrader.
The issue is that the plugin or iTunes Api call doesn't check whether app is available on other markets. For instance, if I just open https://apps.apple.com/app/id1478293930 in the browser, the App Store will open even when the app isn't available on the US app store.
from upgrader.
What country codes are valid for the 1478293930 app?
from upgrader.
We've made it available in the US with the recent update, though not in Russia ('ru' I believe).
from upgrader.
This package is not designed to handle App Stores outside of US. However, it may not be that difficult to add country support. The URL used by the iTunes class is:
https://itunes.apple.com/lookup?id=1478293930
which default the county to US. When I added the query parameter country=RU,
https://itunes.apple.com/lookup?id=1478293930&country=RU
it returns no results:
{
"resultCount":0,
"results": []
}
This URL https://itunes.apple.com/lookup?id=1478293930&country=CA seems to return the Canadian store listing.
I may be able to get the store country ID from a plugin and use that in the URL. Let me look into that.
from upgrader.
Hi,
I would like to express interest in having this plugin working for apps in the store outside the US too. Is that fix underway?
Thanks,
from upgrader.
@hivesey This package does not support multiple countries for iOS. It only supports the US app store at this time. However, there is a quick patch you could make if you want to support only one country that is not US. To make that patch, fork this repo, and change the following line to the country code of your choice:
upgrader/lib/src/upgrader.dart
Line 147 in a22e996
from upgrader.
@skol101 @hivesey There is an update to this package that now supports using the country code from the locale, which merged in PR #39. Check it out.
from upgrader.
Related Issues (20)
- UpgradeCard does not work with dark theme
- how to setup Upgrader in GoRouter with routerDelegate. HOT 4
- Im facing kotlin version issue which version of package will be better for me HOT 1
- Who to get the build number HOT 1
- Minimum version tag shows in Play Store HOT 1
- [Feature Request] Allow users to configure whether to use the `mav`/`miniminAppVersion` values supplied from Play Store/App Store description
- tutorial and when use appcast?
- Appcast critical version update feature HOT 1
- Dont show dialog on IOS device HOT 1
- How to customize popup content .
- Feature request/proposal - Card mode for "about" page HOT 1
- Dependency Conflict: upgrader v8.1.0 Requires device_info_plus ^9.0.1 HOT 1
- Custom Upgrader won't work HOT 2
- Question / Feature request: show card or alert IF AND ONLY IF current version is below a minimal version
- Feature request: adding possibility to style the text buttons.
- Feature request: adding possibility to align the action buttons. (PR available)
- Upgrader dialog doesn't show HOT 6
- How to check if there is an update version or not HOT 2
- BUG - Stream event not catch HOT 4
- App upgarder not working in both android and ios
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 upgrader.