Hello, i am currently learning to create mobile app using ionic 2 and still quite new in this framework,
I wonder if there’s anyway to push a notification to an ionic 2 app in Android/iOS but using MySQL Database,
I would like to develop a simple website using Laravel and make the mobile app using Ionic 2:
Scenario:
I would like to register a new employee in the database using the Laravel website,
When a new employee record is created in mysql database table ‘employee’, a push notification is sent to ionic 2 mobile app,
Is this possible to achieve without using firebase?
Actually, there is a simpler solution: Just send the push notification when the employee is added to the database. To send the push you will need to call an API at your push provider (e.g. Onesignal, Ionic Push etc).
Hello, thank you very much for the information,
I am sorry but, could you elaborate more on this part? Do i call it from the server or from the ionic mobile app itself?
The employee is inserted over my website, i just wanted the mobile phone to view the details of the employees including the newly created one, however, i think it would be nice to have push notification when a new employee data is inserted
Thank you very much for the kind assistance, i will try this solution.
By the way, can this solution be tested when i use a localhost server instead of real server?
I’m working on a project like yours is what you can guide me if you find a solution "I have a table news, anyway to push a notification to an application ionic 3 in Android / iOS but using MySQL Database and I would like to register a new news in the database and when a new record is created in the database table mysql ‘news’, a push notification is sent to the mobile application ionic 3,
You can use OneSignal with your app for implementing push notification. If your app is built in PHP, then you only need to add appID code to your PHP file. You can relate to this tutorial on PHP push notification for this.