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

Version details not showing #10

Closed
Anand3777 opened this issue Oct 1, 2019 · 21 comments
Closed

Version details not showing #10

Anand3777 opened this issue Oct 1, 2019 · 21 comments
Assignees
Labels
need more information Further information is requested

Comments

@Anand3777
Copy link

Anand3777 commented Oct 1, 2019

I can see my package, but installed and available version is not displaying.

Faced issues.

  1. After than not able view the version details only alert with appname "A new version of xxx is available! Version null is now available-you have null"
@larryaasen larryaasen self-assigned this Oct 2, 2019
@drkhannah
Copy link

i get null as well for version number on iOS

@larryaasen
Copy link
Owner

@drkhannah I would like to help you resolve this issue on iOS. What is the Bundle Identifier from your iOS app that was used when you saw the null for version number? Also, what is the Bundle version in the app?

@larryaasen
Copy link
Owner

@Anand3777 I would like to help you resolve this issue. Did you see this issue on Android on iOS? Are you using an Appcast file?

@larryaasen larryaasen added the need more information Further information is requested label Nov 9, 2019
@drkhannah
Copy link

yes i am using an appcast file that i host on firebase and just point to that url

<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"> <channel> <title>My Cleveland Clinic - Appcast</title> <item> <title>Version 1.15.0</title> <description>Cleveland Clinic Patient App</description> <pubDate>Wed, 23 Oct 2019 12:00:00 +0000</pubDate> <enclosure url="https://play.google.com/store/apps/details?id=org.ccf.patientapp" sparkle:version="1.15.0" sparkle:os="android" /> </item> </channel> </rss>

org.ccf.patientapp is the same for the iOS and Android app org.ccf.patientapp

@drkhannah
Copy link

for iOS the version available and the version installed are both null, (but this may be because the app is not in testflight or the appstore yet)

for Android the version available is null, but the version installed is populating

@cytryn
Copy link

cytryn commented Nov 14, 2019

I also have a null on the App Store version for iOS. For now I am just pointing to a random app in the app store. But when I hit UPDATE NOW it takes me to the App Store like it should.

But I am able to get the current version.

image

@larryaasen
Copy link
Owner

@drkhannah I ran a test using the example app, changing the iOS Bundle Identifier to org.ccf.patientapp, the Version to 0.9, and the Build to 0.9.2 and ran the app. I see an upgrade alert which seems correct to me showing the version in the app store as 1.0.1869. Note that in the screenshot the app name is Upgrade because that is what the Display Name is in the example.
Screen Shot 2019-11-16 at 7 35 54 PM

Let me try testing the appcast file for Android.

@larryaasen
Copy link
Owner

@drkhannah I used your Appcast file on a test using the example app on iOS and it worked fine. Appcast file: https://gist.github.com/larryaasen/e11095666fe5250b85668e04c02fdc28
Screen Shot 2019-11-17 at 9 04 08 PM

Next, I will try the same on Android.

@Anand3777
Copy link
Author

@Anand3777 I would like to help you resolve this issue. Did you see this issue on Android on iOS? Are you using an Appcast file?

I'm facing this issue on android, Sorry im not using Appcast file, can you tell how to use this?

@drkhannah
Copy link

im still getting null, is there maybe some things that i could be missing? what could cause it to be null?

@cytryn
Copy link

cytryn commented Nov 19, 2019

I also get null and I am not using Appcast and don't plan to do so, is Appcast a requirement?

@drkhannah
Copy link

its throwing an HTTP exception in io_client.dart

error = "Connection closed before full header was received", uri = https://itunes.apple.com/lookup?bundleId=org.ccf.patientapp

@drkhannah
Copy link

drkhannah commented Nov 26, 2019

this error causes final response = await iTunes.lookupByBundleId(_packageInfo.packageName); to return null

also on ios _installedVersion = _packageInfo.version; is 1.0.0 when i debug, but it displays in the alert dialog as null

@drkhannah
Copy link

for android it is fetching my appcast from "gs://cleveland-clinic-933f9.appspot.com/appcast.xml", but the items in the appcast are null

Screen Shot 2019-11-26 at 8 36 19 AM

@drkhannah
Copy link

ok, it looks like it is only null the first time the alert shows when debugging, the second time it shows it not null, so maybe its just a bug with the debugAlwaysUpgrade debug mode

@larryaasen
Copy link
Owner

@Anand3777 There is information on how to use the Appcast file on the README for this repo. It is necessary on Android to use Appcast with this package.

@larryaasen
Copy link
Owner

@cytryn Appcast is only a requirement for Android, but can also be used on iOS.

@larryaasen
Copy link
Owner

larryaasen commented Nov 30, 2019

@Anand3777 I don't see that null issue like you do. Can you enable logging in the Upgrade widget and include the log here? You can use debugLogging: true in the UpgradeAlert and UpgradeCard widgets.

The log should look something like:

Performing hot restart...
Syncing files to device iPhone 11...
Restarted application in 944ms.
flutter: upgrader: build UpgradeAlert
flutter: upgrader: package info packageName: org.ccf.patientapp
flutter: upgrader: package info version: 0.9
flutter: upgrader: appcast is available for this platform
flutter: upgrader: build UpgradeAlert
flutter: results: {resultCount: 1, results: [{screenshotUrls: [https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/13/6a/e2/136ae252-3fb3-9ff0-de87-a251fd5b7360/pr_source.png/392x696bb.png, https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/24/4e/34/244e34d7-3d79-a0e9-98a5-13b9aac60a8b/pr_source.png/392x696bb.png, https://is5-ssl.mzstatic.com/image/thumb/Purple113/v4/68/a7/64/68a7648a-1b36-3bd1-6e32-4956c266a594/pr_source.png/392x696bb.png, https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/55/14/e9/5514e9c4-a6c5-de80-4800-d06de211181f/pr_source.png/392x696bb.png, https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/23/38/ab/2338ab9d-4503-246e-8661-f5586768496d/pr_source.png/392x696bb.png, https://is4-ssl.mzstatic.com/image/thumb/Purple113/v4/7b/ce/cb/7bcecbcd-8bda-bd78-40b5-7bfdf83c825e/pr_source.png/392x696bb.png], ipadScreenshotUrls: [], appletvScreenshotUrls: [], artworkUrl60: https://is5-ssl.mzstatic.com/image/thumb/Purple113/v4/b5/2e/ed/b52eed3f-3cf4-83d4-d9cc-8680e6f2f052/source<…>
flutter: upgrader: appcast item count: 1
flutter: upgrader: appcast best item version: 1.15.0
flutter: upgrader: appStoreVersion: 1.15.0
flutter: upgrader: installedVersion: 0.9
flutter: upgrader: isUpdateAvailable: true
flutter: upgrader: showDialog title: Update App?
flutter: upgrader: showDialog message: A new version of Upgrader is available! Version 1.15.0 is now available-you have 0.9.

@larryaasen
Copy link
Owner

I just published an update to this package, v0.7.0, that includes some improved error messaging. Also, I added a command line app to help diagnose iTunes problems. See the README.

@larryaasen
Copy link
Owner

I will close this issue if there are no other comments.

@larryaasen
Copy link
Owner

Closing due to lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more information Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants