You need to sign in to do that
Don't have an account?
sasham
how to determine fist time login from mobile
Could ypu pls someone explain
How to determine for tye first time login thorough moble salesforce app which is developeed usiing mobile sdk native app (from ios or android). Is there any field that we can identify if user (customers)logged in for the first time even if they are changing device or deleting the app and downloading again on their device.
How to determine for tye first time login thorough moble salesforce app which is developeed usiing mobile sdk native app (from ios or android). Is there any field that we can identify if user (customers)logged in for the first time even if they are changing device or deleting the app and downloading again on their device.
List<LoginHistory> userLoginList = [SELECT Id, Application, LoginTime FROM Loginhistory WHERE UserId='00528000000000' ORDER BY LoginTime];
if(userLoginList[0].Application == 'Salesforce1 for iOS'){
//Your Logic
}
The Application could be different based on users device, could be Salesforce1 for iOS app or Salesforce1 for Android. You can filter these out easily.