Giter VIP home page Giter VIP logo

Comments (9)

wfhm avatar wfhm commented on June 3, 2024

@fperreault

I have just tested it and it works fine with the latest (5.6.2) version. Also please note that you do not need to manually call getHwid to register a device - Pushwoosh SDK automatically creates a /registerDevice API request when Pushwoosh.register(); is called.

Could you please provide a bit more details on how you integrate Pushwoosh plugin into your project?

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

@fperreault any updates on this one?

from pushwoosh-react-native-plugin.

fperreault avatar fperreault commented on June 3, 2024

@wfhm Thank you for your following. Sure, we use Pushwoosh.register(); to register devices. Everything work on iOS(register and getHwid), but on Android, register callback is never triggered (nor success nor faillure) and getHwid return a empty value. Please note that Pushwoosh.init(); works. We suspect than we have a conflict with another extension...maybe.

Pushwoosh.init(
  {
    pw_appid: appId,
    project_number: projectNumber
  },
  () => console.log("Pushwoosh init success"),
  e => console.log("Pushwoosh init failed", e)
);
Pushwoosh.register(
        token => {
          console.log("Pushwoosh: success", token);
          this.token = token;
        },
        e => console.log("Pushwoosh: failed", e)
);

Pushwoosh.getHwid(
  (id) => console.log("Pushwoosh: " + id)
);

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

@fperreault

It seems to be related to #27 . I have tried 5.7.0 version on Android and it worked perfectly for me, so by any chance could you please provide us with a reproducer?

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

@fperreault

Is this issue still persistent with the latest plugin version? Is there a chance to provide us with a reproducer apk/project so we could check it on our side?

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

@fperreault

#27 Seems to be related to your issue, so there is a chance the solution described there might help you as well. Do you add tools:node="replace" in your AndroidManifest.xml under application tag? If so, merging manifests might lead to this problem, so please try removing it and let us know about the result.

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

The issue is only reproducible when adding tools:node="replace" under application tag in AndroidManifest.xml. Removing it solves the issue.

from pushwoosh-react-native-plugin.

fperreault avatar fperreault commented on June 3, 2024

@wfhm Sorry for the delay. I tried it and, good news, it works now ! Thank you for your help

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 3, 2024

@fperreault Thank you for coming back, this is a great news indeed!:)

from pushwoosh-react-native-plugin.

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.