Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
513 stars 197 forks source link

Android setup documentation deprecated #249

Open Raikhen opened 8 years ago

Raikhen commented 8 years ago

Google Console Developers changed its UI, you probably should update this file. With some friends we are having troubles with the package, and we are afraid that the problem is that the GCM projectNumber and the GCM apiKey are incorrect. Please, you would make us very happy by updating your documentation 😄 .

totoide commented 8 years ago

@Raikhen I ran into the same problem and solved it today by obtaining an FCM projectNumber and FCM apiKey and using them for the gcm apiKey & projectNumber, android senderID, and phonegap-plugin-push SENDER_ID values.

mmiguerodriguez commented 8 years ago

@totoide I've done the same but I'm still having issues with the query parameter when calling Push.send method on client side. Any idea? (it returns as if there were 0 android devices for that id when the Push.send method is called)

totoide commented 8 years ago

@MiGu3X I barely know what I'm doing so probably not much help but here are my versions (Meteor 1.4.1.1, raix:push@3.0.2, raix:eventemitter@0.1.3, raix:eventstate@0.0.4), my setup follows the README (it was updated yesterday so look carefully) and make sure you add the allow rule. I started by sending from the server first since it seemed easier and ruled out client issues, then the client. If you haven't, maybe make sure you can send from the server first? Sorry I don't have more to offer.

mmiguerodriguez commented 8 years ago

@totoide Thanks for providing that info. Yes me too. First I started from server, had a couple of issues with Authorizations, but could work it out. Now I'm struggling to send to a certain user. Could you made that happen though? Because when I send a notification for example in a message that should go to x user it comes to me :sa:

danielbh commented 8 years ago

@totoide Can you pretty please fill in the blanks for me?


App.configurePlugin('phonegap-plugin-push', {
  SENDER_ID: <What FCM value here?>
});

and

gcm: {
      apiKey: <What fcm value goes here?>,
    }

THANK YOU!

Edit: oh ok I see you mention it here: https://github.com/raix/push/issues/226 . Thanks

totoide commented 8 years ago

@MiGu3X I was able to send to a single user - I did it from the server. I haven't done client to client. One issue I had to fix to get it to work properly was delete bad test data from my _raix_push_app_tokens collection.

@danielbh I created a PR to update the documentation, maybe it will help. #251