iOS Development

Implementing centralized login throughout a number of cell purposes on a single system, for Android, iOS, and Flutter platforms

I handle a number of purposes that make the most of a standard authentication server, and I must implement a function that permits customers so as to add accounts. If the person enters the right credentials and obtains a sound token from the server, this account must be saved to a listing. This identical listing of accounts ought to then be seen on the login pages of my different purposes, permitting customers to pick an account and authenticate with its token. Regardless of looking for a correct and easy resolution, I’ve been unsuccessful.

For Android, utilizing the AccountManager is really helpful, however the information is misplaced if the centralized app that created it’s eliminated. Ideally, the info ought to persist so long as there’s an app utilizing it. I’ve thought of storing information on Firebase or a customized server utilizing the system ID as a key, however iOS doesn’t present a novel system ID.

Moreover, Android’s sharedUserID, which facilitates token sharing between apps, is deprecated. iOS permits keychain sharing, nevertheless it comes with its personal challenges, and Android doesn’t have an equal function for sharing keystores, so far as I perceive.

Due to this fact, any code examples or concepts on methods to implement this may be extremely appreciated, whether or not they’re for Flutter, native iOS, or Android—it would not matter. I’m open to any assist out there on any platform.

To be extra exact, I need my apps to operate precisely just like the Yandex apps do with Yandex ID. I’ve not been capable of learn the way they achieved this, however their strategy appears to work very nicely. (Please excuse any grammatical errors in my English.)

Credit: www.ismmailgsm.com

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button