cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-13962) Notification.beep and media.play working only a certain number on Android
Date Wed, 14 Mar 2018 19:57:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joe Bowser resolved CB-13962.
-----------------------------
    Resolution: Won't Fix

This is a known issue, since it takes longer to play the sounds than it does for the event
loop to complete, eventually Android will kill the process that does this.

> Notification.beep and media.play working only a certain number on Android
> -------------------------------------------------------------------------
>
>                 Key: CB-13962
>                 URL: https://issues.apache.org/jira/browse/CB-13962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>         Environment: Phonegap Desktop with Blank Example
> and Phonegap Build with cli-6.5.0 but on lower versions the same
>            Reporter: Marix
>            Assignee: Joe Bowser
>            Priority: Major
>
> Hello,
> i noticed that playing sound files and notification sound only working a certain number
if it is played one after the other.
> Then it stoped working an i have to kill the app and restart.
>   
> So i try the simplest example.
> In Phonegap Desktop the Blank example with:
> <a href="#" onclick="playBeep(); return false;">Play Beep</a>
> <script type="text/javascript" charset="utf-8">   
>      // Beep
>       function playBeep()
> {          navigator.notification.beep(1);          console.log("beep");
     }
> </script>
>  
> on Android 5.1.1 after 26 times stuck
> on Android 7.1.1  and  8.1  after *14* times stuck
> on iOS  I did not observe that
>  
>  
> Now, i make a loop that beep every 2 sec.
>  
> I explore that Android 7.1.1 beeping again after every 5 minutes but only then 14 times
>  
> And i try lower versions of the cli.
> but that doesn't make any difference whether cli-6.5.0 (6.1.2) oder lower 4.1.1, 3.6.4
etc.
>  
>  
> And thats a huge problem.
> Example - a chat that can only make "pling" 14 times in 5 minutes?
>  
>  
> On android 7.1.1 and 8.1 is the intervall 5 minutes and beeping 14 times,
> on android 5.1.1 the intervall is 3 minutes and beeping 26 times
> and on android 4.4.2 it's beeping infinitive
>  
> So what if it's not a problem from phonegap / cordova but from android itself??
>  
> with Ionic the same - play 14 beeps only..
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message