Comments (9)
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.
@fperreault any updates on this one?
from pushwoosh-react-native-plugin.
@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.
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.
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.
#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.
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.
@wfhm Sorry for the delay. I tried it and, good news, it works now ! Thank you for your help
from pushwoosh-react-native-plugin.
@fperreault Thank you for coming back, this is a great news indeed!:)
from pushwoosh-react-native-plugin.
Related Issues (20)
- Android crash app when build release v6.1.7 HOT 4
- Duplicate declaration of method 'clearLocalNotification' HOT 3
- Is not compatible with react-native-firebase/messaging HOT 3
- Feature: deleteTag method HOT 1
- Apple M1 Support HOT 4
- Build fails HOT 2
- fail on load : null is not an object (evaluating 'PushwooshModule.init') (Expo Project) HOT 2
- Pushwoosh.unregister() changes device token HOT 2
- PushReceived not firing while app is in background (only IOS) HOT 5
- Android build error after Huawei integration HOT 3
- Android | Notification not appearing in notification bar / status bar HOT 1
- iOS lost subscriber HOT 1
- Can not completely clear the badge number on iOS HOT 1
- dynamicDidReceiveRemoteNotificationWithFetch Crash HOT 6
- Package contains invalid configuration HOT 3
- [Bug]: ERROR TypeError: Cannot read property 'init' of null, js engine: hermes HOT 7
- [Bug]: Push notifications not working on latest version of RN on Android HOT 15
- [Bug]: Push Notifications not working at all on iOS HOT 3
- [Bug]: RN 0.73.1 IOS [PushwooshPlugin window]: unrecognized selector sent to instance HOT 5
- [Bug]: open iOS notification while app is closed not passing the notification's payload to the app HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushwoosh-react-native-plugin.