-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
So after i call:
RingcaptchaApplication.onboard(getApplicationContext(), "my_app_key_here", "my_secret_key_here", new RingcaptchaApplicationHandler() {
@Override
public void onSuccess(RingcaptchaVerification ringcaptchaVerification) {
}
@Override
public void onCancel() {
}
});
I got this exception:
11-13 11:44:53.484: E/AndroidRuntime(2192): Process: com.illion.dotodo.application.sender, PID: 2192
11-13 11:44:53.484: E/AndroidRuntime(2192): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.illion.dotodo.application.sender/com.thrivecom.ringcaptcha.OnboardActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread.-wrap11(ActivityThread.java)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.os.Handler.dispatchMessage(Handler.java:102)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.os.Looper.loop(Looper.java:148)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread.main(ActivityThread.java:5417)
11-13 11:44:53.484: E/AndroidRuntime(2192): at java.lang.reflect.Method.invoke(Native Method)
11-13 11:44:53.484: E/AndroidRuntime(2192): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-13 11:44:53.484: E/AndroidRuntime(2192): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-13 11:44:53.484: E/AndroidRuntime(2192): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
11-13 11:44:53.484: E/AndroidRuntime(2192): at com.thrivecom.ringcaptcha.BaseActivity.onCreate(BaseActivity.java:48)
11-13 11:44:53.484: E/AndroidRuntime(2192): at com.thrivecom.ringcaptcha.OnboardActivity.onCreate(OnboardActivity.java:53)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.Activity.performCreate(Activity.java:6237)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
11-13 11:44:53.484: E/AndroidRuntime(2192): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
By the way, your documentation is outdated:
It says in docs (https://my.ringcaptcha.com/docs/android):
"On your initial Activity, in the method hooked to the user event add the following line of code."
RingcaptchaApplication.onboard(getApplicationContext(),"{{ app_key }}", "{{ secret_key }}", new RingcaptchaHandler() {
@Override
public void onSuccess(RingcaptchaVerification o) {
//Verification successful
}
@Override
public void onCancel(RingcaptchaVerification o) {
//Decide what do do if user cancelled operation
}
});
But there are only these onboard functions with different signatures:
onboard(Context context, String appKey, String secretKey, RingcaptchaApplicationHandler ringah);
onboard(Context context, String appKey, String secretKey, String pin, RingcaptchaApplicationHandler ringah);
RingcaptchaApplicationHandler != RingcaptchaHandler
Also the version in doc says
compile 'com.thrivecom:ringcaptcha:1.0.7@aar'
the version in github says
compile 'com.thrivecom:ringcaptcha:1.0.8@aar'
I have tried Cognalys call verification but their system got errors.
I would really like to migrate to ringcaptcha if it is working well.
Please help if you can.
Metadata
Metadata
Assignees
Labels
No labels