I have an application where I show a list of news. These news can be shared by the user (simple share-intent you can see in almost every android-application). However, I don't want the user to send the whole link, because these links sometimes can become pretty large. So what I'm doing is to shorten the url by sending an http-request to a shortener-service. This can take 5-10 seconds to get the response.
I'm currently shorten every single url in my news-feed (~10-30 per feed). This is a huge amount and I don't want my user to have 30 http requests for every feed (well it's in the background, he doesn't notice it, but still it consumes network-traffic).
So what I thought is to shorten only the url which is intended to be shared. But therefore the user must wait until the application gets the response of the server, which is also not what the user wants...
Any ideas how to solve this in a good way? Should I maybe ask the user before sharing if he wants to shorten the link (and letting him know that it takes some amount of time) or should I just continue loading the shortened-urls in the background?
Thanks in advance!