Coder Social home page Coder Social logo

vasani-arpit / cordova-plugin-local-notifications Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 216 KB

added three things [1] notification sound loop. [2] lollipop and marshmallow headsup notification [3] wake up app on notification trigger

License: Apache License 2.0

Java 46.31% Objective-C 23.71% JavaScript 29.98%

cordova-plugin-local-notifications's Introduction

Hi there ๐Ÿ‘‹ I am Arpit !!

I am currently working on WBOT and helping small and mid-level business to simplify their business process and needs.

I love web automation. If I am not working on a project, You will find me automating simple web tasks. I like understanding business problems. Usually, I spend time solving problems with open-source solutions.

Pointers to know me better

  • Web and Mobile app developer
  • ๐Ÿ’—JS
  • ๐Ÿœ UI/UX
  • ๐Ÿ’ป DevOps enthusiast
  • ๐Ÿ•บ Self-improvement obsessed
  • โ˜• lover
  • ๐Ÿ™ Jain
  • ๐ŸŽ“ Lifelong student

Feel free to follow me or reach out to me

Contact me on twitter Contact me on telegram Mail me Linked In profile instagram

Articles I have written

Wish list

Buy me a book

โœŒ

cordova-plugin-local-notifications's People

Contributors

vasani-arpit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-local-notifications's Issues

How to use loop to keep the notification going until user clicked on it? (iOS)

Hi there, I was just wondering if you know how to loop the notification sound until user clicked open the notification for iOS? I realize this is for android but couldn't find any related info for iOS. I'm using katzer's original plugin but at the moment the notification only goes for 30 seconds without repeating.

custom sound doesnt work

cordova.plugins.notification.local.schedule( { id: 1,
sound: 'file://beep.caf',
title: 'Warning',
text: 'Time is running out'
})

the sound file is in root www folder
but notification comes with the dafault ios and android sound.
any help?

Build failed using ionic cordova run android

1st of all Thank you for this plugin fork.

I'm using Ionic v1
platform : Android
This is the error on my terminal when I run :

ionic cordova run android

/platforms/android/src/de/appplant/cordova/plugin/notification/AbstractTriggerReceiver.java:59: error: cannot find symbol
			 Log.d("Trigger", "on Trigger Received: ========================================================");
			 ^
  symbol:   variable Log
  location: class AbstractTriggerReceiver
/home/PROJECT/platforms/android/src/de/appplant/cordova/plugin/notification/AbstractTriggerReceiver.java:61: error: cannot find symbol
            Intent appIntent = new Intent(context, MainActivity.class);
                                                   ^
  symbol:   class MainActivity
  location: class AbstractTriggerReceiver
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
:compileArmv7DebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileArmv7DebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

what i did to make it work is to remove the code on the file
platforms/android/src/de/appplant/cordova/plugin/notification/AbstractTriggerReceiver.java
line 59

Log.d("Trigger", "on Trigger Received: ========================================================");
Intent appIntent = new Intent(context, MainActivity.class);
appIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.getApplicationContext().startActivity(appIntent);

^ What does this code do?
thanks in advance.

alternative for "android.app.Notification.FLAG_INSISTENT"

Is there another way to repeat the notification sound aside from "FLAG_INSISTENT"?

Cause my problem is that I have an audio playing in my app, then when a new notification appears with looping sound, the audio playing in my app stops.

I tried to remove
android.app.Notification.FLAG_INSISTENT
from line 240 in Notification.java.
The result was, the audio playing in my app didn't stop but the notification sound plays only once.

So, I want to keep the looping notification sound without affecting the audio playing in my app.

Any HELP is appreciated. TIA.

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.