Comments (7)
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?
from card.io-android-sdk.
Please re-open this issue or file a new one if this problem persists.
from card.io-android-sdk.
+1 for the issue .. It affects a really small portion of our users, here's a more complete stacktrace from crittercism:
Stack Trace
_________________________________
0 java.lang.RuntimeException: Unable to start activity ComponentInfo{a.b.android.app/io.card.payment.CardIOActivity}: 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
1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)
2 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
3 at android.app.ActivityThread.access$800(ActivityThread.java:148)
4 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
5 at android.os.Handler.dispatchMessage(Handler.java:122)
6 at android.os.Looper.loop(Looper.java:136)
7 at android.app.ActivityThread.main(ActivityThread.java:5105)
8 at java.lang.reflect.Method.invokeNative(Native Method)
9 at java.lang.reflect.Method.invoke(Method.java:515)
10 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12 at dalvik.system.NativeStart.main(Native Method)
13 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
14 at io.card.payment.CardIOActivity.onCreate(Unknown Source)
15 at android.app.Activity.performCreate(Activity.java:5437)
16 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
17 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2172)
18 ... 11 more
19 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
20 at io.card.payment.CardIOActivity.onCreate(Unknown Source)
21 at android.app.Activity.performCreate(Activity.java:5437)
22 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
23 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2172)
24 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
25 at android.app.ActivityThread.access$800(ActivityThread.java:148)
26 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
27 at android.os.Handler.dispatchMessage(Handler.java:122)
28 at android.os.Looper.loop(Looper.java:136)
29 at android.app.ActivityThread.main(ActivityThread.java:5105)
30 at java.lang.reflect.Method.invokeNative(Native Method)
31 at java.lang.reflect.Method.invoke(Method.java:515)
32 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
33 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
34 at dalvik.system.NativeStart.main(Native Method)
from card.io-android-sdk.
Same issue. Could you check that you save token after system kill and re-create activity with no extras intent?
from card.io-android-sdk.
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. π
from card.io-android-sdk.
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
from card.io-android-sdk.
Thanks @ShahMaitri. I'll address your comment in #31.
from card.io-android-sdk.
Related Issues (20)
- requestFeature() must be called before adding content HOT 1
- cardio not working on android tablet
- CardIO fragment HOT 1
- Crash in CardScanner.isFlashOn()
- Black Screen while device connected to vysor
- θ―ε«ζ²‘ζδ»»δ½εεΊ HOT 1
- How to retrain card.io model to include non-embossed digits? HOT 3
- Do you have any plan for supporting new 2-series BIN for MasterCard
- Flaw detected by Veracode static scan
- Privacy Risk HOT 2
- AAR size increased from 2.63 MB to 12 MB in release 5.1.0 HOT 1
- README - "SSL Pinning" link is broken
- Could not scan expiry date HOT 3
- FATAL EXCEPTION: main Process: io.card.development, PID: 4934 android.os.StrictMode$StrictModeViol HOT 1
- Support for more than 16 digits in card number
- Upgrade build gradle HOT 1
- Does not work with android 7.0
- onActivityResult is not getting called after a successful scan of credit card. HOT 2
- Edit card number after scanning
- App not extracting card info after rectangle frame completes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from card.io-android-sdk.