gogoout / nativescript-rater Goto Github PK
View Code? Open in Web Editor NEWReminds your app's users to review the app through PlayStore or AppStore. Love it, rate it! **not maintained anymore**
License: MIT License
Reminds your app's users to review the app through PlayStore or AppStore. Love it, rate it! **not maintained anymore**
License: MIT License
main.ts
import {appRater} from 'nativescript-rater';
appRater.init();
app.component.ts
import {appRater} from 'nativescript-rater';
-- onInit
appRater
.setDaysUntilPrompt(7)
.setUsesUntilPrompt(3)
.setSignificantUsesUntilPrompt(2)
.setShowLaterButton(true)
.setShowNeverButton(true)
.setDebugMode(true);
appRater.showRateDialogIfMeetsConditions();
UntilPrompt not working, I tried to launch the app 4 times but the dialog not show.
Hi, on IOS after you select "rate demo" on the initial pop up nothing happens.
Ive checks on IOS emulators and device using the demo app supplied as well as my own angular app.
Im using IOS version 13.3
nativescript - 6.5.0
Thanks
Error while building android on api lever 17
/Users/bellalmohamed/Development/zeal-area/Zeal-Members-App-Native/platforms/android/app/src/main/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 17 cannot be smaller than version 21 declared in library [:nativescript-rater:] /Users/bellalmohamed/.gradle/caches/transforms-2/files-2.1/cb8dc1ca29e8e5d1b47ded14a870aa9d/nativescript-rater/AndroidManifest.xml as the library might be using APIs not available in 17
Suggestion: use a compatible library with a minSdk of at most 17,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="hotchemi.android.rate" to force usage (may lead to runtime failures)
This is actually not an issue.
Will you support the new In-App Review system by Android ? Here's the link.
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...
I'm getting the above error after adding the plugin (via NS Sidekick) and then importing it in main.ts, and calling appRater.init(.... just before the boostrapping:
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app/app.module";
import { appRater } from 'nativescript-rater';
appRater.init({
showNeverButton:false,
debugMode:true
});
platformNativeScriptDynamic().bootstrapModule(AppModule);
Demo runs without problem
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
I used both Android and IOS, emulator and real devices as well.
tns version 6.1.2
"tns-android": {
"version": "6.1.2"
},
"tns-ios": {
"version": "6.1.1"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"nativescript-admob": "^4.0.0",
"nativescript-audio-player": "^1.0.3",
"nativescript-gif": "^4.0.2",
"nativescript-image": "^2.2.5",
"nativescript-local-notifications": "^4.0.1",
"nativescript-rater": "^2.1.1",
"nativescript-theme-core": "~1.0.6",
"tns-core-modules": "~6.1.0"
},
"devDependencies": {
"nativescript-dev-webpack": "~1.2.0"
Describe the steps to reproduce it.
Demo runs without a problem and I integrated it to my app. As it is mentioned in the README. I get the review request every time pages loads. ( I trigger the appRater.showRateDialog() on page load.)
I wanted to test the plugin by setting the debug mode to false. So I would check usesUntilPrompt (3) works or not. I was expecting that when the pages load I would not see review request until I launched the app 4th times. But whenever the pages loads review request page appears. Having this in released version would be a problem.
So, will I have the similar issue with the released version? Or is there a way to test configs?
Thank you in advance.
Android error while build with plugin installed: Could not find method compile() for arguments [com.github.hotchemi:android-rate:1.0.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
iOS error while plugin use: ERROR in ./node_modules/nativescript-rater/rater.ios.js 4:14-50
Module not found: Error: Can't resolve 'tns-core-modules/ui/frame' in './node_modules/nativescript-rater'
resolve 'tns-core-modules/ui/frame' in './node_modules/nativescript-rater'
NativeScript 8.2.3
@nativescript/android 8.2.2
@nativescript/ios 8.2.2
node v17.6.0
npm 8.1.4
adding plugin to android platform make it impossible to run or build. To reproduce in android just call
Hello,
There is an issue on iOS when the app is available in only one country. The iTunes lookup return an empty response.
Related issue : takecian/SwiftRater#30
SwiftRater documentation :
SwiftRater.countryCode = "fr"
Could you please add this parameter in the next version of this NS plugin ? Thank you.
Hi, when calling showRateDialog() on IOS 13.3 i am am being prompted by the dialog used for ใ iOS 10.2 not the star rating dialog for iOS 10.3 ใ.
When i set debug to true as shown below, then call showRateDialogIfMeetsConditions() the star rating dialog shows as expected.
appRater.init({
showNeverButton: false,
debugMode: true
});
I would expect showRateDialog() to prompt the star rating dialog ?
Thanks
I can't figure out where to put the custom labels for Android.
Can someone give me the path and the filename?
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
tns --version
to fetch it) -> Allnode_modules/tns-core-modules/package.json
file in your project)-> 6.5.1"tns-android"
and "tns-ios"
properties in the package.json
file of your project) -> 6.5.0package.json
file of yourDescribe the steps to reproduce it.
A pull request is coming any minute now :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.