Giter Club home page Giter Club logo

Comments (10)

uerceg avatar uerceg commented on September 12, 2024

Hi @lumierephoto and thank you for opening this issue.

As far as I see, everything looks good. My advice would be to turn log level to verbose so that you can see all the logs which our SDK prints. You can adapt your initialisation code to look something like this:

var adjustConfig = new AdjustConfig("APP_TOKEN", AdjustConfig.EnvironmentSandbox);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
Adjust.create(adjustConfig);

I run example app on iPhone usually like this:

cordova ios clean && cordova build ios && cordova run ios --device

After running it, you can open Xcode, choose Window --> Device and check your device's logs. Here's how it looks in my case and notice red selected part which says that install has been tracked.

screen shot 2016-04-01 at 14 55 32

Let me know if you need any further assistance.

Cheers

from cordova_sdk.

lumierephoto avatar lumierephoto commented on September 12, 2024

I followed your instructions but I'm not getting any logs in the Windows -> Devices.

Here is my index.js updated with the new line of code:

 var app = {
     initialize: function() {
      this.bindEvents();
  },

bindEvents: function() {
    document.addEventListener('deviceready', this.onDeviceReady, false);
},

onDeviceReady: function() {
    app.receivedEvent('deviceready');

    //  Adjust SDK Configure
    var adjustConfig = new AdjustConfig("APP_TOKEN", AdjustConfig.EnvironmentSandbox);

      adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
      Adjust.create(adjustConfig);
   },

  receivedEvent: function(id) {
    var parentElement = document.getElementById(id);
    var listeningElement = parentElement.querySelector('.listening');
    var receivedElement = parentElement.querySelector('.received');

    listeningElement.setAttribute('style', 'display:none;');
    receivedElement.setAttribute('style', 'display:block;');

    console.log('Received Event: ' + id);
  }
};

Where are you putting this code in your app demo?

var adjustConfig = new AdjustConfig("APP_TOKEN", AdjustConfig.EnvironmentSandbox);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
Adjust.create(adjustConfig);

from cordova_sdk.

lumierephoto avatar lumierephoto commented on September 12, 2024

Also, do you have a link to your AdjustDemo Cordova project so I can see how you did it?

from cordova_sdk.

lumierephoto avatar lumierephoto commented on September 12, 2024

This is the only log that I get in Xcode for the SDK:

  2016-04-01 13:43:42.459 Solitaire[1667:73436] [CDVTimer][adjust] 2.776980ms

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Sure, example app is not something which is such a big secret, we're just not keeping it at the moment in the repository due to its big size. You can download it temporary from here: [no longer valid link]

Let me know once you have downloaded it.

from cordova_sdk.

lumierephoto avatar lumierephoto commented on September 12, 2024

Thanks, I downloaded it.

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Great. Just please instead of string I wrote ({YourAppToken}) write actually your app token. BTW, I have edited your upper posts with code to hide your actual app token which you pasted.

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

@lumierephoto Any update on this issue?

from cordova_sdk.

uerceg avatar uerceg commented on September 12, 2024

Closing the issue due to inactivity.

@lumierephoto Feel free to reopen the issue if you still face this issue.

from cordova_sdk.

NagendraMNK avatar NagendraMNK commented on September 12, 2024

[no longer valid link]

I am facing same issue, [CDVTimer][adjust] 0.084996ms

Could you please help me here, because of this, creat events are not working

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.