-
Notifications
You must be signed in to change notification settings - Fork 536
Unexpected IllegalArgumentException in CardIOActivity.onCreate #14
Comments
This can happen if the token (extracted from the intent using .getStringExtra(EXTRA_APP_TOKEN) value is null, the length is 0, or the token string contains a space. Could it be that a space character was inadvertently included? |
Please re-open this issue or file a new one if this problem persists. |
+1 for the issue .. It affects a really small portion of our users, here's a more complete stacktrace from crittercism:
|
Same issue. Could you check that you save token after system kill and re-create activity with no extras intent? |
Please download the latest SDK (3.2.0+). We have removed the concept of APP_TOKENS entirely, and so this exception should never occur again. 👔 |
I am getting below kind of error while using CardIOActivity. Need suggestions to solve this 11-12 01:59:43.565: E/dalvikvm(2885): Could not find class 'io.card.payment.CreditCard', referenced from method org.my.scanExample.MyScanActivity.onActivityResult |
Thanks @ShahMaitri. I'll address your comment in #31. |
In some rare cases the CardIOActivity unexpectedly throws exception IllegalArgumentException due to invalid token.
The token is valid and it's provided with intent.
Caused by: java.lang.IllegalArgumentException: A valid card.io app token must be supplied as a stringExtra with the key CardIOActivity.EXTRA_APP_TOKEN. Get one at https://card.io
at io.card.payment.CardIOActivity.onCreate()
The text was updated successfully, but these errors were encountered: