Page 1 of 1

Device registration not working

Posted: Fri Apr 17, 2015 9:55 pm
by Tarun Srivastava

Hi,
I am trying to register devices to the database for push notification. I have tried everything but it does not work.
So to test if I understand what to do, I created another application with nothing in it to test device registration. One device got registered and other one did not.
I think there is some serious bug in Appery. The example is also old and hence the new layout confuses on top of the problem I am facing.


Device registration not working

Posted: Sat Apr 18, 2015 2:32 am
by Illya Stepanov

Hi Tarun -

Could you please describe what exactly have you tried?

Which device you are using for testing?


Device registration not working

Posted: Sat Apr 18, 2015 3:11 am
by Tarun Srivastava

Hi Illya,
In an app with no logic, I created the pushNotificationDeviceID in the local storage. Enabled push notification. Added database id.
I tested it on

  1. Galaxy Note 3 Android version 5.0

  2. Galaxy Note 2 Android version 4.1.2

    Ran it on note 2. It works. The app alerted with deviceID. I was able to send the notification and received it on the device.
    I ran the same app on note 3. I got an alert null. nothing in the database

    Then I created an sample app from backup. Downloaded the zip file from appery. Ran the app. It works fine. But then I added the pushNotificationDeviceID to the local storage and enabled push notification and added database id.
    Devices do not get registered with the database. App works fine. But notification does not work.

    :(

    THanks.


Device registration not working

Posted: Sat Apr 18, 2015 6:59 pm
by Tarun Srivastava

So It all works now. The problem was with the google api key it seems. I had few apps and few api keys and few databases. I deleted all. Created app and database from scratch, created new google cloud api, generated new keys and all seems to work as of now. I was anxious but the documentation isn't complete/clear so I inferred its a bug in Appery. It is more of a issue with the documentation.


Device registration not working

Posted: Sat Apr 18, 2015 7:00 pm
by Evgene Karachevtsev

Hello Tarun,

Thank you for the update, glad it works!