简体   繁体   中英

Override android package name for Crashlytics reporting

In the Amazon AppStore you can distribute both Google Play-style apps and apps heavily customized for the Fire Phone and Fire TV. In order to do this, you generate two different binaries (which can really be quite different and should be thought of as two different apps entirely).

Once the binaries have been created, you need to distribute them to the proper devices via the Amazon AppStore. This is where the problem comes in - since all binaries need to have the same package name.

What is the preferred method to track two different apps which have the same package name using Crashlytics?

I have tried setting a custom package name using the directions found here for reporting a different package to Crashlytics - however the custom package name never appeared in Crashlytics even after forcing several crashes and observing the SDK upload the reports.

使用新的Fabric的Crashlytics,您可以直接配置要在Fabric.Builder工厂中使用的包名称,如果没有设置它默认为context.getPackageName()。

Fabric.with(new Fabric.Builder(context).kits(new Crashlytics()).appIdentifier("com.stuff.overriden").build());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM