Now for some internet optimism.
A Flutter package to share data and invite contacts using SMS or email to the @platform.
This package can be used to generate the invite link with passcode and handle connecting the invitee to the inviter on the @platform. Please refer to documentation.
It is expected that the app will first create an AtClientService instance and authenticate an atsign.
The invitation service needs to be initialised with the
AtClientService instance, current atsign, a global navigator key and a url of web page to use for launching and redirection.
initializeInvitationService( navkey: scaffoldKey, atClientInstance: clientSdkService.atClientServiceInstance?.atClient, currentAtSign: activeAtSign, webPage: 'https://xxxx', rootDomain: MixedConstants.ROOT_DOMAIN);
The app also needs to handle deep links and handle incoming link with parameters. The uni_links package can be used for this.
checkAndWriteCookie needs to be called on the
onLoad event of the webpage.
- This will not work if the the user disables cookies in browser.
- In Android, Chrome browser does not support automatic redirection back to app. User will have to tap on the link at top of the page to return to the app.