Page 1 of 3

Device ID registration for Push Notifications with firebase

Posted: Tue Jul 12, 2016 7:53 pm
by Austin Troth

I am having issues getting push notifications to work. I believe I have all the settings correct and push notifications is on. I have set up a firebase account and when the app is installed on a device they don't register to the database. From what i understand is it's supposed to do that automatically. If i run a java script code

setTimeout(function() {
alert(localStorage.getItem('pushNotificationDeviceID'));
}, 1);

shown in the tutorial
https://devcenter.appery.io/documenta...

I can get a push to go through but then the app shows an annoying pop up each time I start the app. All the tutorials reference the old google push system and not the new firebase system. Thanks


Device ID registration for Push Notifications with firebase

Posted: Tue Jul 12, 2016 8:59 pm
by Serhii Kulibaba

Hello Austin,

Appery.io applications register devices in Appery.io database automatically, and sends Push nofitications, using that database, so it doesn't work with 3rd-part databases. Do you want to send it with REST services?


Device ID registration for Push Notifications with firebase

Posted: Tue Jul 12, 2016 9:26 pm
by Austin Troth

The app that is installed on several devices isn't actually registering though. The device list in my database has 1 device. the one that contains the java script from the first post. I just want to send push notifications from the Appery customer console but it says I have no devices registered.


Device ID registration for Push Notifications with firebase

Posted: Wed Jul 13, 2016 7:11 am
by Illya Stepanov

You should connect your app to the Appery.io Database to be able to use our Push notifications backend service.


Device ID registration for Push Notifications with firebase

Posted: Wed Jul 13, 2016 2:36 pm
by Austin Troth

the settings in the database and in the push notifications tab show that they are linked but still not working. Thanks Image Image


Device ID registration for Push Notifications with firebase

Posted: Thu Jul 14, 2016 7:36 pm
by Austin Troth

the settings in the database and in the push notifications tab show that they are linked but still not working. Thanks Image Image


Device ID registration for Push Notifications with firebase

Posted: Thu Jul 14, 2016 8:05 pm
by Austin Troth

and the app does have push notifications enabled


Device ID registration for Push Notifications with firebase

Posted: Fri Jul 15, 2016 7:52 am
by Serhii Kulibaba

Hello Austin,

Please clarify, did you set all Push Notification setting here? (SenderID and API Key for Android devices, Push Certificate and it's password for iOS devices)

If so - did you reinstalled the application to your mobile devices after these changes? Please do it with a new build version, it is important


Device ID registration for Push Notifications with firebase

Posted: Fri Jul 15, 2016 2:18 pm
by Austin Troth

I did for android but not iOS as we are not supporting it right now


Device ID registration for Push Notifications with firebase

Posted: Sat Jul 16, 2016 10:24 am
by Serhii Kulibaba

Could you clarify have you changed anything on the Source tab?

If you did, these custom changes might cause the build to fail. Try to rollback the custom source changes and try to build the app again. Here is how to rollback custom source change: http://devcenter.appery.io/tutorials/....

When you make changes in the Source view for a particular page, the visual editor for that page will not be updated (until you rollback the changes). You can learn more here: http://devcenter.appery.io/tutorials/...