We are developing hybrid mobile application in IBM MobileFirst V7.1,Java 1.7v.
In this application we are developed push notification using Adapter Based Authentication.
In our application we are sending push notification using Adapter based Authentication. The notification is delivered based on userId. Here for first time to a particular userId,I'm able to send notification. After that when user trying with another userId I'm unable to send notification,getting an error "user already exist please logout".
Error in Log: Cannot change identity of an already logged in user in realm 'pushAppRealm'. The application must logout first.
for this in client side I'm checking whether user is authenticated or not by using "WL.Client.isUserAuthenticated(realm)" ,it is always retuning false. I also tried with logout option when user clicks on login button I'm logging out the user and again authenticating the user - here also I'm facing same issue "user already exist please logout".