Reputation: 549
I'm building a mobile app for iOS and Android using ionic 2. I want the users' accounts to be device based so the users do not need to manually register or authenticate. How is this usually achieved?
Upvotes: 1
Views: 24
Reputation: 1503
why dont you use this plugin and get the device info Ionic Native Device
So you can access these information
And then create a unique ID by combining or with any Algo Example :
import { Device } from '@ionic-native/device';
loginid:any;
constructor(private device: Device) {
this.loginid = device.uuid+device.serial;
}
Use this LoginId to Auth the user Automatically. Hope this helps. Thanks :)
Upvotes: 2