firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.59k stars 1.46k forks source link

App Distribution doesn't return any releases #10205

Closed tfonfara closed 2 years ago

tfonfara commented 2 years ago

Description

App Distribution is not showing any in app alert. While debugging, I found that the api call to https://firebaseapptesters.googleapis.com/v1alpha/devices/-/testerApps/[...]/installations/[...]/releases is returning an empty dictionary. Tester is receiving email notifications and used same email address to sign in in the app that is configured in the firebase console as tester. There also the tester is in accepted state. Actually this happens for all testers.

This is also happening for a while now. Following the troubleshooting didn't work. Even after downloading an earlier release from the web no new release is shown.

Note: Somewhen in the past with unchanged configuration this was working. There is also no error returned from the sdk.

Reproducing the issue

No response

Firebase SDK Version

9.5.0

Xcode Version

13.3.1, 14.0

Installation Method

Swift Package Manager

Firebase Product(s)

App Distribution

Targeted Platforms

iOS

Relevant Log Output

2022-09-13 00:24:12.501594+0200 AppName[2025:340557] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Instance returned: <FIRAppDistribution: 0x2816a45c0>
2022-09-13 00:24:12.502100+0200 AppName[2025:340557] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Tester is signed in.
2022-09-13 00:24:14.483740+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Instance returned: <FIRAppDistribution: 0x2816a45c0>
2022-09-13 00:24:14.484471+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Tester is signed in.
2022-09-13 00:24:14.484534+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Instance returned: <FIRAppDistribution: 0x2816a45c0>
2022-09-13 00:24:14.484844+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] CheckForUpdateWithCompletion
2022-09-13 00:24:14.484966+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Tester is signed in.
2022-09-13 00:24:14.488155+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Requesting releases for app id - [...]
2022-09-13 00:24:14.488556+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] Url : https://firebaseapptesters.googleapis.com/v1alpha/devices/-/testerApps/[...]/installations/[...]/releases, Auth token: [...]
2022-09-13 00:24:15.100751+0200 AppName[2025:340552] 9.5.0 - [FirebaseAppDistribution][I-FAD000000] HTTPResonse status code 200 response <NSHTTPURLResponse: 0x2816ced00> { URL: https://firebaseapptesters.googleapis.com/v1alpha/devices/-/testerApps/[...]/installations/[...]/releases } { Status Code: 200, Headers {
    "Alt-Svc" =     (
        "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
    );
    "Cache-Control" =     (
        private
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Length" =     (
        23
    );
    "Content-Type" =     (
        "application/json; charset=UTF-8"
    );
    Date =     (
        "Mon, 12 Sep 2022 22:24:15 GMT"
    );
    Server =     (
        ESF
    );
    Vary =     (
        Origin,
        "X-Origin",
        Referer
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        SAMEORIGIN
    );
    "x-xss-protection" =     (
        0
    );
} }

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json { "pins" : [ { "identity" : "abseil-cpp-swiftpm", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git", "state" : { "revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1", "version" : "0.20220203.2" } }, { "identity" : "boringssl-swiftpm", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/boringssl-SwiftPM.git", "state" : { "revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab", "version" : "0.9.1" } }, { "identity" : "firebase-ios-sdk", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/firebase-ios-sdk.git", "state" : { "revision" : "7f31a43f8c49bd4a1723bc9fecdfaa4411dd9f36", "version" : "9.5.0" } }, { "identity" : "googleappmeasurement", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleAppMeasurement.git", "state" : { "revision" : "f54f60d0164d887e1174fa51ab2efe48a8e9d178", "version" : "9.3.0" } }, { "identity" : "googledatatransport", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleDataTransport.git", "state" : { "revision" : "5056b15c5acbb90cd214fe4d6138bdf5a740e5a8", "version" : "9.2.0" } }, { "identity" : "googleutilities", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleUtilities.git", "state" : { "revision" : "f4abe56ce62a779e64b525eb133c8fc2a84bbc1f", "version" : "7.7.1" } }, { "identity" : "grpc-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/grpc/grpc-ios.git", "state" : { "revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6", "version" : "1.44.3-grpc" } }, { "identity" : "gtm-session-fetcher", "kind" : "remoteSourceControl", "location" : "https://github.com/google/gtm-session-fetcher.git", "state" : { "revision" : "19605024d59eaefdb1f6a2cb11ebe75df4421126", "version" : "2.0.0" } }, { "identity" : "leveldb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/leveldb.git", "state" : { "revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", "version" : "1.22.2" } }, { "identity" : "nanopb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/nanopb.git", "state" : { "revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", "version" : "2.30909.0" } }, { "identity" : "promises", "kind" : "remoteSourceControl", "location" : "https://github.com/google/promises.git", "state" : { "revision" : "3e4e743631e86c8c70dbc6efdc7beaa6e90fd3bb", "version" : "2.1.1" } }, { "identity" : "swift-log", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { "revision" : "6fe203dc33195667ce1759bf0182975e4653ba1c", "version" : "1.4.4" } }, { "identity" : "swift-protobuf", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf.git", "state" : { "revision" : "b8230909dedc640294d7324d37f4c91ad3dcf177", "version" : "1.20.1" } } ], "version" : 2 } ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 2 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

rizafran commented 2 years ago

Thanks for reaching out, @tfonfara. First off, could you confirm if you have made any changes in your config before the issue occurred?

tfonfara commented 2 years ago

@rizafran thanks for your reply. I have for sure nothing changed in the console, regarding integration in the app I once again followed those steps to make sure I didn't miss anything, but everything looks good. Maybe not really related, but I'm also using Cloud Messaging in the app, which is working as expected.

rizafran commented 2 years ago

@tfonfara, I tried to reproduce the issue, but I was able to get the in app alert to install my app's latest version. Could you provide the detailed steps in reproducing the issue as well as the screenshot of the actual behavior and iOS version of the device used?

google-oss-bot commented 2 years ago

Hey @tfonfara. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 2 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@tfonfara if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.