Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local notifications not working #2

Open
ghost opened this issue Dec 18, 2015 · 10 comments
Open

Local notifications not working #2

ghost opened this issue Dec 18, 2015 · 10 comments

Comments

@ghost
Copy link

ghost commented Dec 18, 2015

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
Copy link

ghost commented Dec 19, 2015

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

@ghost
Copy link
Author

ghost commented Dec 28, 2015

@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
Copy link
Author

ghost commented Dec 28, 2015

@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
Copy link

ghost commented Jan 3, 2016

@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
Copy link

ghost commented Jan 5, 2016

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
Copy link
Author

ghost commented Jan 14, 2016

@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
Copy link

ghost commented Jan 15, 2016

@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
Copy link
Author

ghost commented Jan 19, 2016

@Nursyafiah Thanks for the update! Good luck with the project! Please feel free to contact me ([email protected]) 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 ghost self-assigned this Jan 19, 2016
@ghost
Copy link
Author

ghost commented Jan 19, 2016

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

@ghost
Copy link

ghost commented Jan 20, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants