Open lukehutch opened 3 months ago
The URL for the launched intent looks the same as the URL I provided for the direct Store link that works:
Maybe .setData
should be used to pass the URL to the browser, rather than passing the URL as the second argument of new Intent(...)
?
https://stackoverflow.com/a/5327690/3950982
This is in fact how url_launcher
launches URLs on Android:
So I actually replaced openStoreListing
with the following in my app:
await launchUrl(Uri.parse(Platform.isAndroid
? 'https://play.google.com/store/apps/details?id=$androidPackageName'
: 'https://apps.apple.com/us/app/click-social/id$appStoreId'));
Read testing guidelines
When my app calls
openStoreListing
, one user reports that the Play Store listing does not allow him to rate the app. However, if he goes straight to the Play Store URL, he gets a different page that does let him rate the app.(1) The listing after calling
openStoreListing
:(2) The listing after visiting the above Play Store URL directly, on the same device: