Hacker News new | ask | show | jobs
by pmtarantino 3360 days ago
I never developed an app so I dont know, but if you cant include in the APK because people can decode it, how do you distribute keys and secret strings?
2 comments

What secret strings?

You distribute user-specific secrets after a user has logged in over a secure channel.

You don't get to have app-specific secrets - since anybody can get and run the app (and modify it!), nothing in it has a reason to be secret. This means that you don't get to have an API that's available only through that app and with limitations set by that app. If you use a third-party API that requires you to enforce limits on its use (e.g. that end users can't redistribute access to that API), this means that you can't meet the requirements of that API licencing.

You do it like that and just hope people won't abuse it.