evothings / cordova-plugin-local-notifications

A bunch of local notification plugins for Cordova 3.x.x
Apache License 2.0
3 stars 1 forks source link

Local notifications not working #2

Open ghost opened 8 years ago

ghost commented 8 years ago

Issue report received on email:

I followed your tutorial on beacons on this link: https://evothings.com/hands-on-guide-to-building-a-native-javascript-ibeacon-app-using-cordova/ and it mentioned to use the:

cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications#0.8.1 

as the notification.

Currently when I do the following scenario, I am able to receive the notification: 1) Run the mobile application, ensure it is part of the recent list and then lock my phone 2) Run the mobile application, go to another mobile application such as FB, ensure that the beacon mobile application is part of the recent list and then lock my phone

However, when I swipe away the mobile application from the recent list, I could no longer receive the notification.

Hence, I would like to ask you if you do know what is the cause of the problem? This is because I have tried various methods I found online but none of it is working.

ghost commented 8 years ago

@mikaelkindborg hi, i am using android platform. is the katzer cordova plugin local notification similar as to evothings/cordova-plugin-local-notifications?

ghost commented 8 years ago

@nursyafiah They are different, evothings/cordova-plugin-local-notifications is not the same as the most recent version at https://github.com/katzer/cordova-plugin-local-notifications.

I recommend you to try to use the version at: https://github.com/katzer/cordova-plugin-local-notifications Also found this version, seems to be ahead of the Katzer version, have not tested it though: https://github.com/Salesfloor/cordova-plugin-local-notifications/releases

Be altered that the API in the evothings fork differs (is an older version) from the recent versions linked above.

ghost commented 8 years ago

@nursyafiah Did some more research, and the Salesfloor fork is behind Katzer.

I recommend you try to use the most recent Katzer release.

If installed first remove existing plugin with:

cordova plugin rm de.appplant.cordova.plugin.local-notification

Then add with:

cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications#0.8.1

There is more info available on installing the plugin on this page:

https://github.com/katzer/cordova-plugin-local-notifications/wiki/03.-Installation

ghost commented 8 years ago

@mikaelkindborg hi there, thank you for taking your time researching and explaining to me on my doubts. sadly, even when I installed the katzer plugin using the following command line: cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications#0.8.1, I still need to ensure the app is in the recent list and not swipe away (not force close). else, i wont receive any notification

ghost commented 8 years ago

Hi @mikaelkindborg , as mentioned, i am using the katzer/plugin-local-notification. Is it possible if the notification appear when a beacon is detected and the app is not part of the recent list (not force stop)?

ghost commented 8 years ago

@nursyafiah Sorry for the delay, I am not sure about this, have to do some experimentation to be able to help further. Hopefully I will be able to do this in a couple of weeks.

ghost commented 8 years ago

@mikaelkindborg hi mikael, it is alright. i am actually doing a project related to beacon and i have to submit the project next week. i would like to thank you and your team for taking the time helping me when i have doubts despite being busy with your own work. it is alright if you are unable to solve the problem i posted above.

thank you once again :)

ghost commented 8 years ago

@nursyafiah Thanks for the update! Good luck with the project! Please feel free to contact me (mikael@evothings.com) or post to the forum if you wish to share something about your project (https://evothings.com/forum/viewforum.php?f=4)

Hopefully we will have local notifications working and documented in time for your next project.

ghost commented 8 years ago

Task of this issue is to test and document usage of local notifications with iBeacon and BLE (Eddystone).

ghost commented 8 years ago

@mikaelkindborg thank you to you and your team once again :) i really appreciate you help :)