Closed mahasadhu closed 7 years ago
Can you show me the code how do you call the Qiscus.setUser method? And please make sure your application is not logged out after getting push notification. These exceptions will only be thrown if Qiscus does not find any account information, but your application tries to perform tasks that require a Qiscus account.
Hi, I have fixed the problem myself, so it seems like when the user click on the notification, all other activity is destroyed. I put clearuser in ondestroy method. And that's where the problem is.
By the way I guess you should try to not make it force closed when the app forgets to set or do something to the sdk. Just my two cents though 😃
Anyway thanks for the reply and instructions !
Please note Qiscus.clearUser is only used when user wants to logout from Qiscus. Do not call every time Actcivity is destroyed, but call when the user logs out of his account.
It should be force close by design, you can not use any feature before setting qiscus user.
Yep I got it, thank you
Hello, I just try to create a simple app using qiscus.
When I click on the new chat notification, the app always force closed. The logcat says that the app did not call the setuser method, although it did call the setuser method. Besides, how could the app receive a notification if the setuser method is not called yet ?
I use sdk ver 2.7.2 error happened in android 6 and 7
Following is the error log. Thank you in advance.