I am new to Ionic 3 and I implemented Local notifications using plugin https://ionicframework.com/docs/native/local-notifications/ and it works just as expected, but every time I push my changes and take a pull again, I need to re-install the plugin and build again. Any solutions?
Asked
Active
Viewed 2,280 times
1
-
I got the fix, it was this line in my **package.json** file that was causing the problem: `"cordova-plugin-app-event": "file:node_modules/cordova-plugin-app-event"` Changing the path of the plugin fixed the issue. – Kapil Sharma Oct 11 '17 at 16:29
-
Wait, did you mean.. I have to add that line in package.json ? – Zubli Quzaini Mar 11 '18 at 08:37
-
That line already existed in **package.json**, only the path was incorrect, i.e, when I went to the given path, the directory wasn't there but one more step inside, and that was the issue. What I did back then was to move the directory out to the given path, and that worked. One more thing to do could be to remove your **node_modules** directory and then running `npm i` Hope it helps. – Kapil Sharma Mar 12 '18 at 05:24
-
Ah, I see.. thanks! – Zubli Quzaini Mar 12 '18 at 10:48
-
No problem, always happy to help! – Kapil Sharma Mar 13 '18 at 15:00
2 Answers
0
Referring to this link, the correct way to install local notification plugin for Ionic 3 is by using ionic cordova plugin add de.appplant.cordova.plugin.local-notification
Most Ionic 3 users have CLI version 3 and above. Hope this help to others too!

Zubli Quzaini
- 352
- 1
- 3
- 17
-
The correct way, as given in [Official Ionic documentation](https://ionicframework.com/docs/native/local-notifications/), was followed and everything was working fine. The problem was different than what you are trying to solve. Maybe it was a temporary issue, as it does not happen anymore. – Kapil Sharma Mar 13 '18 at 15:04
0
As mentioned in the first comment in my question itself, the problem was resolved, so I am closing this topic by posting an answer.
I got the fix, it was this line in my package.json file that was causing the problem:
"cordova-plugin-app-event": "file:node_modules/cordova-plugin-app-event"
Changing the path of the plugin fixed the issue.

Kapil Sharma
- 141
- 1
- 15