Ionic notifications with php server and ioni http API push


#1

Hello,
I’m totally noob with ionic. I need to add push notifications for android and ios in the app of my University made with ionic V2.
Can someone help me? I’m following some guides, but I have serious difficulties because ionic doc does not match the current version of ionic cli.
I have tried to follow this guide https://devdactic.com/ionic-push-notifications-guide/ and this https://github.com/yafraorg/yafra/wiki/Blog-Ionic-PushV5. The commands of course do not work because most of them are deprecated and I can not find app.js file.
I have already taken the android and ios data for enabling cloud messaging.
Please, if someone can give me a guideline for do this, I would really appreciate it!

Sorry for my english and my high noob level!


#2

Examples please so it can be fixed.[quote=“rosag, post:1, topic:93443”]
I have tried to follow this guide https://devdactic.com/ionic-push-notifications-guide/ and this https://github.com/yafraorg/yafra/wiki/Blog-Ionic-PushV5. The commands of course do not work because most of them are deprecated and I can not find app.js file.
[/quote]

Both links you posted contain tutorials for Ionic v1, not Ionic 2+


#3

thaanks for your replies, how I can set up the ionic app for notifications? How i can use the Ionic push API in a php class? I saw in the ionic doc that I need some parameters. For now my objective is to make a blank ionic v2 app in android set for native notifications, then I need to make a php class which uses the Ionic push API.