Giter Club home page Giter Club logo

Comments (11)

ninjamonkno1 avatar ninjamonkno1 commented on May 28, 2024

No sure if this is applicable but this is based on - https://github.com/dvtoever/phonegap-plugins/tree/master/Android/LocalNotification

There is mention of AndroidManifest.xml and adding to it.

From the other project:
"The first part tells Android to launch the AlarmReceiver class when the alarm is be triggered. This will also work when the application is not running."

from cordova-plugin-local-notifications.

katzer avatar katzer commented on May 28, 2024

The broadcast receiver is still listed in the manifest. Otherwise a notification would never popup.

I will take a look in a free minute.

from cordova-plugin-local-notifications.

katzer avatar katzer commented on May 28, 2024

Does work for me if I test your test scenario with an simulator.

from cordova-plugin-local-notifications.

ennovum avatar ennovum commented on May 28, 2024

Thanks for the feedback.
I tested id on HTC One V. The scenario was always the same.
I'll do some more tests and come back to you.

from cordova-plugin-local-notifications.

wlodarcm avatar wlodarcm commented on May 28, 2024

I have the same issue when I'm testing this on Samsung Galaxy S4 (Android 4.3). Namely, when app is running everything works as intended but when it's closed I receive an alert saying 'Unofrtunately, APPNAME has stopped.' I'm not Android developer and I'm concerned if AlertManager provides full functionality of local notifications - there is another class NotificationManager /builder which sounds more accurate. Any thoughts on this?

Please find the screenshot below.
screenshot_2013-12-03-10-47-52

from cordova-plugin-local-notifications.

katzer avatar katzer commented on May 28, 2024

OK, it is fixed (aacd804)

from cordova-plugin-local-notifications.

ennovum avatar ennovum commented on May 28, 2024

Commit aacd804 causes build failure- I've put a comment in a respective place.
But the fix is valid- the notification is there after the app is killed. Many thanks!

from cordova-plugin-local-notifications.

katzer avatar katzer commented on May 28, 2024

Have fixed it. Forgot to copy that ...

from cordova-plugin-local-notifications.

trybuss avatar trybuss commented on May 28, 2024

Plugin after recent fix (for Android) wakes up the application from the background and method invokeBackgroundCallback(Options options) of class ReceiverActivity.java is being fired but a line of code "LocalNotification.webView.sendJavascript(function + "(" + options.getId() + ")");" causes the error "Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html) ". Before the error appears there is 20 seconds of completely black screen. When I close the alert window, the target JavaScript function is being fired finally.

Screen with mentioned error:

screenshot_2013-12-11-14-23-10

Tested on Samsung Galaxy Nexus with Android 4.3

from cordova-plugin-local-notifications.

ennovum avatar ennovum commented on May 28, 2024

Same here. Same HTC One V.

from cordova-plugin-local-notifications.

katzer avatar katzer commented on May 28, 2024

I could not reproduce that message. But I think its not related to the plugin.

I guess maybe your internet connection may be to slow. Here what I found so far:

  1. http://dev.wavemaker.com/wiki/bin/wmdoc_6.5/PhoneGap?xpage=print#HTheconnectiontotheserverwasunsucessful28file3A2F2F2Fandroidasset2Fwww2Findexhtml29
  2. http://rickluna.com/wp/2012/04/solving-the-connection-to-the-server-was-unsuccessful-error-in-androidphonegap/

from cordova-plugin-local-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.