Search code examples
androidcrashlyticsgoogle-fabriccrashlytics-beta

Android, is there a way to update a Fabric Beta distributed app within the app?


I have successfully distributed the app via fabric beta, but after the new version of the app was distributed, there is no window for updates in the old app.

Is there a way to update a Fabric Beta distributed app within the app?

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.

In the project, I have integrated the fabric, like this:

build: 1:

apply plugin: 'io.fabric'

2:

buildscript {
repositories {
    google()
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    classpath 'io.fabric.tools:gradle:1.25.4'
}
}

3:

dependencies {
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
    transitive = true
}

Fastfile:

fastlane_version "2.68.0"

generated_fastfile_id "1111"

default_platform :android

lane :beta do
   build_android_app(task: "assembleRelease")
   emails = ["xxxxx"]

   sh("touch changelog.txt")
   File.write("./changelog.txt","Distributed with fastlane")

   # upload to Beta by Crashlytics
   crashlytics(
       notes_path:"fastlane/changelog.txt",
       api_token: "xxxx",
       build_secret:"xxxx",
       emails: emails,
       groups:[], 
       notifications: true
  )end

Fabric.properties

apiSecret=xxxx
apiKey=xxxx

Solution

  • Mike from Fabric and Firebase here. On Android, Fabric checks every two hours to see if a new version of your app is available. If so, it will show the notifications in the System Notifications center. There is not an in-app update prompt on Android.