How to receive files based on extensions from other apps

ios
android

#1

Hey guys, how can I receive files files which contain JSON content with my app? How do I make the files the default app for those file types?