RocketChat / Rocket.Chat.Cordova

Rocket.Chat Cross-Platform Mobile Application via Cordova (DEPRECATED)
MIT License
104 stars 109 forks source link

Push Notification configuration #76

Closed CrazyCodz closed 8 years ago

CrazyCodz commented 8 years ago

How do we configure the push notification for Android and iOS?

Do we need to do anything to gateway?

CrazyCodz commented 8 years ago

Here is the steps which I have followed for the Push notification.

1) Created a new project 2) Generated a API key of the type browser 3) Added the record in Administration --> Push

GCM API Key = "API key" GCM Project Number = " project number"

4) Created a file www/js/android_sender_id.js with following window.ANDROID_SENDER_ID = "Project number"

5) disabled the gateway

Am I missing anything?

CrazyCodz commented 8 years ago

Deleted all the records in _raix_push_app_tokens. Then deleted all the records. Then logged out of the app then logged back. It created a new record in the table.

geekgonecrazy commented 8 years ago

@CrazyCodz did this work?

CrazyCodz commented 8 years ago

We got it working for the Android but iOS is still pending.

The steps I wrote is pretty much what we followed. Are you facing the same issues?

On Feb 27, 2016, at 3:21 AM, Aaron Ogle notifications@github.com wrote:

@CrazyCodz did this work?

— Reply to this email directly or view it on GitHub.

geekgonecrazy commented 8 years ago

@CrazyCodz I am not. Just wanted to check in and see if you had figured it out. Please feel free to reach out to me on the demo server https://demo.rocket.chat