Sharing information between users on QR codes – better to pull from a server?

I'm building an app that revolves around users scanning each other's QR codes and sharing information. This would be the main feature of the app, but often times the information in the QR code can get very large, and so it gets harder and harder to scan. In this case, should I encode only a URL in the QR code and pull the information from there? Obviously this approach would require Internet connection.