Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Device ID registration for Push Notifications with firebase

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?

Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Device ID registration for Push Notifications with firebase

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

Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

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

Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

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

Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

and the app does have push notifications enabled

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Device ID registration for Push Notifications with firebase

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

Austin Troth
Posts: 0
Joined: Wed Feb 26, 2014 4:54 am

Device ID registration for Push Notifications with firebase

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Device ID registration for Push Notifications with firebase

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/...

Return to “Issues”