Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I can't tell without more details. I'm just thinking about the common problems, modern stuff with large compatabillity.
I mean, it really can be hard to write secure code that scopes many versions. As far as I can remember Android also pushes just too aggressively, not really thinking about upgradability/maintainability.
Typical Google things. Microsoft really does that great. Apple goes fast but at least helps you with the way they want it.
I've been caught reading multiple definitions of the same API that drastically changed from version to version.
Anyways, I'm not doing Android anymore. PWA rules them all (sorry) -
Use Sentry, that will auto detect crashes
As for Apple thingy, it is much worse, but lets just focus on your problem now, use Sentry and no need for users to report it will auto report.
But I don't understand what you meant by something works not as expected, and something doesn't work, you mean in your app or Google Play console? -
OnurOz92365y@gitpush
So the app works fine on my phone.
But each person who downloaded it, has reported a different error.
And what is sentry? how do I use sentry? -
@OnurOz92 You just add their sdk to your app and whenever it crashes you will see logs on your sentry console, give it a try, its free
-
OnurOz92365y@gitpush
So my app is a meme generator. You upload an image, add captions and save it. Pretty simple, right?
One user reported that it just crashes at startup. This was due to the fucking proGuard. I was able to fix it.
One user reported that, despite granting storage permissions, the app wouldn't save the bitmap. Didn't crash. Just wouldn't save it.
One user reported that it crashed when he hit the save button.
So I wonder if this Sentry framework will be able to detect errors of this sort.
This is my app: github.com/oo92/memegenerator
This is the Google Play link:
https://play.google.com/store/apps/... -
@OnurOz92 yes it would, simple setup sentry ci so that it uploads debugging symbols to be able to decode crash logs when they arrive.
But I was wondering, if your app is open source, why using proguard? -
@OnurOz92 I saw in your code this:
void logWithStaticAPI() {
Sentry.getContext().recordBreadcrumb(new BreadcrumbBuilder().setMessage("User made an action").build());
Sentry.getContext().setUser(new UserBuilder().setEmail("hello@sentry.io").build());
Sentry.capture("This is a test");
try {unsafeMethod();}
catch (Exception e) {Sentry.capture(e);}
}
THere is no need for that, once you setup sentry (which you already do in your MainActivity.java) then it will auto detect any crash, that code above is to manually log events.
Related Rants
I effing hate Google Play & Google Play Console.
I've uploaded an app and the troubles haven't ended. It is a different error on different devices. Some of them are compile time, some of them run time, some of them just functions the way its not suppose to. And the worst part is that there is no way to track these errors. Google Play Console is utter Horse crap. People tell me that my app crashes and the console reports "nothing to show" under the crashes page.
rant
android
java