Hello everyone, I've been trying to make works the notifications in react native, to be more exact in Android.

I have changed the google service to the last version in the build.gradle:

compile project(':pushwooshplugin')

compile ('com.google.android.gms:play-services-gcm:+') {force = true;}
compile ('com.google.android.gms:play-services-location:+') {force = true;}

That was the only way to achieve to run the register part.

In pushwoosh dashboard appear that My app is subscribed, and I got the token in my app...all is ok, however I haven't beeen able to recieve notification en my app.

I have tried several things, but I don't know how to do work it.

I would like to know how to get the notification in my app

My code is: (index.android.js)

import Pushwoosh from 'pushwoosh-react-native-plugin';

AppRegistry.registerComponent('APP', () => APP);

Pushwoosh.init({ "pw_appid" : "xxxxxx" , "project_number" : "xxx" });

Pushwoosh.register( (token) => { console.warn("Registered for push notifications with token: " + token); Alert.alert( 'Registro', "Registered for push notifications with token: " + token, [ { text: 'Aceptar',


}, (error) => { console.warn("Failed to register for push notifications: " + error); Alert.alert( 'Registro', "Failed to register for push notifications: " + error, [ { text: 'Aceptar',


} );

Pushwoosh.getTags( function(tags) { console.warn('tags for the device: ' + JSON.stringify(tags));

    console.warn('get tags error: ' + JSON.stringify(error));


asked 07 Aug, 21:50
Geniux's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Aug, 21:50

question was seen: 283 times

last updated: 07 Aug, 21:50