Reputation: 3627
I want to identify the crashes in my SDK when some other apps integrate my SDK in their app.. during the use of my SDK in other apps, if crashes happen anywhere in my SDK code, then I want to identify that.
What are the ways to implement this type of integration in SDK?
Upvotes: 2
Views: 154
Reputation: 2403
To integrate Crashlytics you need to configure Firebase for your app package.
Since the app package is not your app package, but the package of the consumer of your SDK, it's impossible.
I believe there is an alternative way of doing so (check out Thread.setDefaultUncaughtExceptionHandler(...)
and wrap the existing one), but I recommend, as been said in the comments, to check how you can legally do it.
I'm guessing (pure guess so don't take my word for it) that you need a written consent from you SDK customer and also runtime consent from the end user.
Alternative legal way to do it:
MySdkException
.MySdkException
from within your SDK.MySdkException
.MySdkException
.MySdkException
.Upvotes: 2