to set up for pushing notifications and i might have done a problem that i don’t get it.
I had put on Security Profiles & Credentials the firebase server key. I put Cloud Configurations on app.js
and this on controllers.js at the controller of my first page.
Does your app actually register for push and log a push token to the console?
PS: By the way, it would help the legibility of your post a lot if you could format you code as code. Just select the code use the </> button in the toolbar that adds the necessary 3 space in front of your code lines. Thanks.
No. When an app first starts it “registers” with Apple/Google to get a notification token. This is initiated by calling a register() method on the Push object created by the library.
Ok now we are getting somehwere. The register() call is actually in the code you posted in the first post you made here - and as it is called on $ionicPush this doesn’t seem to be present. This is you problem.
I assume something went wrong during the installation process. You might want to create a new, blank Ionic 1 app and redo the installation process to see if you get better results then. If so, see what’s the difference between the new and your current project.
Yes, there are no push notifications on the iPhone/Pad emulators. You will need a physical device to test push.
Former versions of Ionic Cloud offered a “dev” mode where you could also test Push in the browser, but I don’t know if this is available in the current version. Sorry.
(But if I remember correctly testing in the emulator shouldn’t result in $ionicPush being broken / non-existent.)
No it didn’t work but i might have some errors on the code because i can’t do anything on the first page that i have the controller for the push notifications
It’s the same situation for me it doesn’t work and i don’t get anything on the console.Also i have put native Auth because i thought it might be the problem that i don’t have register users and still nothing happen