gogoout / nativescript-rater

Reminds your app's users to review the app through PlayStore or AppStore. Love it, rate it! **not maintained anymore**
MIT License
7 stars 8 forks source link

Android side is not working with {N} 6 #1

Closed shiv19 closed 5 years ago

shiv19 commented 5 years ago
JS: NativeScript discardedErrorEvent:  Error: Calling js method onSingleTapUp failed
JS: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.Activity.isFinishing()' on a null object reference
JS:     hotchemi.android.rate.AppRate.showRateDialog(AppRate.java:184)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:1122)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1109)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1089)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1081)
JS:     android.view.GestureDetector_SimpleOnGestureListener_vendor_114937_32_TapAndDoubleTapGestureListenerImpl.onSingleTapUp(Unknown Source:20)
JS:     android.view.GestureDetector.onTouchEvent(GestureDetector.java:641)
JS:     androidx.core.view.GestureDetectorCompat$GestureDetectorCompatImplJellybeanMr2.onTouchEvent(GestureDetectorCompat.java:480)
JS:     androidx.core.view.GestureDetectorCompat.onTouchEvent(GestureDetectorCompat.java:543)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:1122)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1109)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1089)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1081)
JS:     java.lang.Object_vendor_109889_32_TouchListenerImpl.onTouch(Unknown Source:13)
JS:     android.view.View.dispatchTouchEvent(View.java:12589)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3028)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2705)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     an...
JS: NativeScript discardedErrorEvent:  Error: Calling js method onTouch failed
JS: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
JS:     android.view.GestureDetector_SimpleOnGestureListener_vendor_114937_32_TapAndDoubleTapGestureListenerImpl.onSingleTapUp(Unknown Source:26)
JS:     android.view.GestureDetector.onTouchEvent(GestureDetector.java:641)
JS:     androidx.core.view.GestureDetectorCompat$GestureDetectorCompatImplJellybeanMr2.onTouchEvent(GestureDetectorCompat.java:480)
JS:     androidx.core.view.GestureDetectorCompat.onTouchEvent(GestureDetectorCompat.java:543)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:1122)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1109)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1089)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:1081)
JS:     java.lang.Object_vendor_109889_32_TouchListenerImpl.onTouch(Unknown Source:13)
JS:     android.view.View.dispatchTouchEvent(View.java:12589)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3028)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2705)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3034)
JS:     android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
JS:     android.view.ViewGroup.dispatchTransformedTouchEvent...
gogoout commented 5 years ago

HI, the source code of android is from here: https://github.com/hotchemi/Android-Rate .

shiv19 commented 5 years ago

Thanks, working on migrating it