Giter Club home page Giter Club logo

Comments (11)

uerceg avatar uerceg commented on September 12, 2024 1

PR has been merged. Can you guys give latest SDK version and latest TypeScript typings version a shot?

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Hi @afelipelli

Thanks for reporting this. We'll check this on our end and keep you posted.

from cordova_sdk.

ShishoA avatar ShishoA commented on September 12, 2024

I implemented the SDK with the latest plugin and Ionic wrapper:

ionic cordova plugin add com.adjust.sdk npm install @ionic-native/adjust

which installed these:

"com.adjust.sdk": "^4.29.0", "@ionic-native/adjust": "^5.36.0",

With those in place, the attribution wasn't working. After debugging, I noticed this error in the logs:

TypeError: adjustConfig.hasConversionValueUpdatedCallbackListener is not a function That was when I called adjust.create()

Indeed, this function didn't exist and I couldn't make it work, so I downgraded to versions I had used before:

"com.adjust.sdk": "^4.23.0", "@ionic-native/adjust": "^5.29.0",

And that worked. So apparently, there's something wrong with the latest versions. Maybe the combination of these two versions don't work? Notice I don't call this hasConversionValueUpdatedCallbackListener in my code.

Thanks, Alex

same .

from cordova_sdk.

rahulm2 avatar rahulm2 commented on September 12, 2024

@afelipelli @uerceg when I moved back "com.adjust.sdk": "^4.23.0", "@ionic-native/adjust": "^5.29.0" it worked fine for android but didnt work for IOS. Can any of you help me with this

from cordova_sdk.

IgorSavchenko90 avatar IgorSavchenko90 commented on September 12, 2024

Same problem. Have any solution?

from cordova_sdk.

rahulm2 avatar rahulm2 commented on September 12, 2024

@afelipelli @uerceg Where can I find the documentation for ionic and capacitor implementation? Facing an issue with ios builds

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Hey guys,

Sorry for delay on this one. I think I see where the issue is. JavaScript method which is mentioned in the error message (https://github.com/adjust/cordova_sdk/blob/master/www/adjust_config.js#L290-L292) is not added to ionic-native typings (missing from this section https://github.com/danielsogl/awesome-cordova-plugins/blob/master/src/%40awesome-cordova-plugins/plugins/adjust/index.ts#L220-L242).

We will submit PR to awesome-cordova-plugins repo with the fix which, once merged should hopefully make this error disappear. Will keep you posted.

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

PR submitted.

from cordova_sdk.

Aviho-M avatar Aviho-M commented on September 12, 2024

Hi guys any new ?
Which Sdk version works best?

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Hey @Aviho-M,

This is already released in awesome-cordova-plugins repo. If you are still facing the same issue, it might be because you are still trying to use TypeScript typings from deprecated ionic-native repo instead from awesome-cordova-plugins. Give this a shot:

  1. Check if inside of your APP_DIRECTORY/node_modules you have @ionic-native/adjust folder. If you do, that means that you have install from ionic-native repo. Remove it with npm uninstall @ionic-native/adjust.
  2. Install Adjust TypeScript typings from awesome-cordova-plugins repository with npm install @awesome-cordova-plugins/adjust.

In addition to that, make sure to change the import statement in your app code to redirect to new repo. So replace:

import { Adjust, AdjustConfig, AdjustEnvironment, AdjustLogLevel } from '@ionic-native/adjust/ngx';

with:

import { Adjust, AdjustConfig, AdjustEnvironment, AdjustLogLevel } from '@awesome-cordova-plugins/adjust/ngx';

After this, things should hopefully work. Let us know if this worked for you.

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

In case issue still persists for you, feel free to comment / reopen. Cheers.

from cordova_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.