Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not installed error #68

Open
scamps86 opened this issue Jun 20, 2023 · 10 comments
Open

Plugin is not installed error #68

scamps86 opened this issue Jun 20, 2023 · 10 comments
Assignees

Comments

@scamps86
Copy link

I'm trying the new release 2.0.1 for this plugin, but it seems that it's not installing it properly in both Android and iOS.
If I use the 1.9.6 it works perfectly.

Also the documentation for @awesome-cordova-plugins/smartlook is wrong because the specified methods are different.

[warn] - Native: tried calling Smartlook.setup, but the Smartlook plugin is not installed. ⚡️ [warn] - Install the Smartlook plugin: 'ionic cordova plugin add https://github.com/smartlook/cordova-smartlook.git'

@kiwikia
Copy link

kiwikia commented Aug 15, 2023

I'm also getting the same issue, what version of @awesome-cordova-plugins/smartlook are you using @scamps86 ?

@c0mtru1se
Copy link
Collaborator

Hey!
Sorry for the trouble, may I please ask when did you both follow the installation instructions? We had big issues with getting our v2 changes merged into the @awesome-cordova-plugins/smartlook repository, but in the middle of July (18th, respectively), it was finally released in version 6.4.0 of the repo.
I have then also cleaned up, fixed and updated our docs which should resolve in a successful installation, as well as integration snippets for Angular, Vue or React. Could you please check whether you followed the new instructions, and install from the updated oss package?
Thx for the info!

@c0mtru1se c0mtru1se self-assigned this Aug 16, 2023
@kiwikia
Copy link

kiwikia commented Aug 16, 2023

Hi @c0mtru1se thanks yes the latest version of @awesome-cordova-plugins/smartlook solved the above issue for me.

I am now getting a crash when launching with an error DYLD error: Library not loaded: @rpath/SmartlookAnalytics.framework/SmartlookAnalytics. I've raised a new ticket for this error -> #73

@dksanket
Copy link

I am getting " Native: tried calling Smartlook.startRecording, but the Smartlook plugin is not installed." in android, and "Native: tried calling Smartlook.setUserIdentifier, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator" in web. Could you please help me with it.

"@awesome-cordova-plugins/smartlook": "^5.46.0",
"cordova-plugin-smartlook": "^2.0.1",
Angular 11, ionic 5, capacitor 3

@c0mtru1se
Copy link
Collaborator

c0mtru1se commented Aug 18, 2023

@dksanket please update the @awesome-cordova-plugins/smartlook package to the latest version 6.4.0 and let me know, the issue should be resolved.
Also, you can update our cordova-plugin-smartlook to a new version, 2.0.2 which comes fix some arbitrary bug fixes.

Thanks!

@dksanket
Copy link

dksanket commented Aug 19, 2023

@c0mtru1se thank you for the quick response, I tried it but the issue still exists. I am getting the following warning in the console "common.js:350 Native: tried calling Smartlook.setup, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator" in web. Haven't tried it in android yet.
I thought @awesome-cordova-plugins versions 6 and above support only angular 12 and above, whereas our project is in angular 11.

@c0mtru1se
Copy link
Collaborator

c0mtru1se commented Aug 20, 2023

@dksanket I see, I'm assuming you are testing the app with either ionic serve or ionic cordova run browser?
That will, unfortunately, not work as this package does not support the browser platform. It contains the native mobile SDKs only, e.g. Android and iOS ones.
Please, test the package only by running on Android or iOS si/emulators or devices.

Ad @awesome-cordova-plugins - the problem is that anything bellow v6 does not support our v2 SDK API, hence the "Native: tried calling Smartlook.startRecording, but the Smartlook plugin is not installed." error you already reported.

It you want to use version < 6, you need to use the old version of our SDK, e.g. cordova-plugin-smartlook v1.9.6.
Just please note that this version is no longer properly supported.

@scamps86
Copy link
Author

scamps86 commented Sep 9, 2023

@kiwikia Finally I've fixed it by using the following:

@awesome-cordova-plugins/smartlook -> 6.3.0
cordova-plugin-smartlook -> 1.9.6

this works in iOS, but not in Android. To get it working on Android I've modified node_modules/cordova-plugin-smartlook/src/android/plugin.gradle with the following:

repositories { maven { url "https://sdk.smartlook.com/android/release" } } dependencies { implementation 'com.smartlook.recording:app:1.8.13-cordova' }

@dksanket
Copy link

It's not working for me, could you please tell me the versions that you are using? I am using angular 11, ionic 5, capacitor 3.. I even tried with "@awesome-cordova-plugins/smartlook": "^5.46.0" and cordova-plugin-smartlook -> 1.9.6, didn't work.

@scamps86
Copy link
Author

scamps86 commented Sep 12, 2023

@dksanket I share the dependencies defined in package.json:

"@angular/common": "^16.0.5", "@angular/core": "^16.0.5", "@angular/forms": "^16.0.5", "@angular/platform-browser": "^16.0.5", "@angular/platform-browser-dynamic": "^16.0.5", "@angular/router": "^16.0.5", "@awesome-cordova-plugins/core": "^6.3.0", "@awesome-cordova-plugins/native-audio": "^6.3.0", "@awesome-cordova-plugins/sign-in-with-apple": "^6.3.0", "@awesome-cordova-plugins/smartlook": "^6.3.0", "@byteowls/capacitor-filesharer": "^4.0.0", "@capacitor-community/admob": "^3.3.0", "@capacitor-community/advertising-id": "^4.0.0", "@capacitor-community/barcode-scanner": "^3.0.1", "@capacitor-community/firebase-analytics": "^4.0.0", "@capacitor/android": "^4.3.0", "@capacitor/app": "^4.0.1", "@capacitor/browser": "^4.0.1", "@capacitor/camera": "^4.1.2", "@capacitor/clipboard": "^4.1.0", "@capacitor/core": "^4.3.0", "@capacitor/device": "^4.0.1", "@capacitor/geolocation": "^4.1.0", "@capacitor/haptics": "^4.0.1", "@capacitor/ios": "^4.3.0", "@capacitor/keyboard": "^4.0.1", "@capacitor/preferences": "^4.0.1", "@capacitor/push-notifications": "^4.1.0", "@capacitor/share": "^4.0.1", "@capacitor/splash-screen": "^4.0.1", "@capacitor/status-bar": "^4.0.1", "@capawesome/capacitor-file-picker": "^0.5.0", "@codetrix-studio/capacitor-google-auth": "3.2.0", "@ionic/angular": "^7.0.12", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", "air-datepicker": "^3.0.1", "animate.css": "^4.1.0", "capacitor-rate-app": "^3.0.0", "cordova-plugin-nativeaudio2": "^3.0.11", "cordova-plugin-nativestorage": "^2.3.2", "cordova-plugin-purchase": "^13.8.0", "cordova-plugin-sign-in-with-apple": "^0.1.2", "cordova-plugin-smartlook": "^1.9.6", "cordova-promise-polyfill": "^0.0.2", "core-js": "^2.5.4", "csv-parse": "^5.3.0", "es6-promise-plugin": "^4.2.2", "http-status-codes": "^2.2.0", "jetifier": "^1.6.5", "js-base64": "^3.7.2", "luxon": "^3.0.4", "ngx-image-cropper": "^7.0.0", "rollbar": "^2.25.2", "swiper": "^9.3.2", "uuid": "^7.0.3", "zone.js": "~0.13.0" "@angular-devkit/build-angular": "^16.0.5", "@angular-eslint/builder": "^16.0.3", "@angular-eslint/eslint-plugin": "^16.0.3", "@angular-eslint/eslint-plugin-template": "^16.0.3", "@angular-eslint/schematics": "^16.0.3", "@angular-eslint/template-parser": "^16.0.3", "@angular/compiler": "^16.0.5", "@angular/compiler-cli": "^16.0.5", "@angular/language-service": "^16.0.5", "@capacitor/cli": "^5.0.4", "@ionic/angular-toolkit": "^7.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/luxon": "^3.0.2", "@types/node": "^12.11.1", "@types/uuid": "^7.0.2", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", "codelyzer": "^6.0.2", "eslint": "^8.18.0", "husky": "^4.2.5", "jasmine-core": "^4.2.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "npm-force-resolutions": "0.0.3", "prettier": "^2.0.5", "pretty-quick": "^2.0.1", "protractor": "^7.0.0", "ts-node": "~7.0.0", "tslint": "~6.1.0", "typescript": "^4.8.4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants