- Jun 6, 2020
- 11,559
- 4,422
I thought I'd like to share the results of investigations I have carried out today in the hope that some may find it useful. I have an app that stores data as predominantly text and is potentially sharable between a few close groups of people. Rather than create a server and associated comms, I saw a cool way of doing this on an other OS app that used schemes.
So you create a link in an email which contains the data you want to transfer, when it's clicked on a device that recognizes the scheme an intent is generated and an app can be opened in the normal way.
The app I saw used a high level scheme and defined its own which would have been something like 'myapp://" and the data. Apparently this is frowned on by the community as it like creating your own domain name which may cause issues. Added to that, GMail and probably other mail clients actively filter out unrecognized schemes. The next option is to use an existing scheme 'http' and specify a host name which when matched...
So you create a link in an email which contains the data you want to transfer, when it's clicked on a device that recognizes the scheme an intent is generated and an app can be opened in the normal way.
The app I saw used a high level scheme and defined its own which would have been something like 'myapp://" and the data. Apparently this is frowned on by the community as it like creating your own domain name which may cause issues. Added to that, GMail and probably other mail clients actively filter out unrecognized schemes. The next option is to use an existing scheme 'http' and specify a host name which when matched...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید