Comments (9)
Ok, here we go. Here's an easy sample project to reproduce the problem.
Steps to Reproduce
- Download the demo app here and try to run the ANE on Android according to the instruction.
- Inject your sound file to the Android's
res/raw
folder using this software. - when scheduling for a LocalNotification to happen, set the sound property like this:
setting.sound = "androidSound";
var setting:NotificationAndroidSettings = new NotificationAndroidSettings();
setting.notificationId = 3;
setting.payload = "payload data";
setting.title = "the title";
setting.message = "the message";
setting.time = new Date().getTime() + 5000; // means 5 seconds from now
//setting.sound = file.nativePath; // to play a sound from File.documentsDirectory
setting.sound = "androidSound"; // to play a sound from res/raw folder. Not including the .mp3 file extension
setting.vibrate = true;
Notification.init();
Notification.adjust(setting);
As soon as the notification happens, no sound will be heard and the error shows in AndroidStudio's logcat.
from adobe-runtime-support.
While I was writing the Steps to Reproduce
section, I told to myself "this is too hard to be tested!" So, you're right. Let me build another ANE for this reason, maybe a localNotification ANE to avoid the hard steps of producing the FCM one. Thanks for the suggestion.
from adobe-runtime-support.
Oh, and by the way, this happens in Android ONLY on all AIR SDK versions.
from adobe-runtime-support.
Just to be sure I'm adding the correct labels: this happens on all AIR platforms, right? (I.e. iOS, Android, Desktop).
As for reproducibility: My guess is that if you take the time to create a minimal ANE without dependencies (containing a sound and trying to play it back), and provide Adobe with source + binaries, you'd have higher chances of them looking into it. But it's their call, of course.
from adobe-runtime-support.
Thanks a lot for the info — just saw that Android was mentioned in the title, too. Cheers!!
from adobe-runtime-support.
This also happens with Video files! Video files packaged inside the apk will be compressed and can't be played in our Augmented Reality ANE. I guess if Adobe is fixing the compression problem for sound files, they should also do the same fix for the video files.
from adobe-runtime-support.
Sound problem has solved in Air 29.0 ?
from adobe-runtime-support.
@myflashlab Hi - are you able to confirm that this is sorted now using the configuration settings we've put into the ADT config file? e.g. UncompressedExtensions setting and the change to ensure files in res/raw aren't compressed?
If it's sorted now, please could you close the issue! Thanks
from adobe-runtime-support.
yes, it is fixed now. I confirm :) I didn't know this issue was open.
from adobe-runtime-support.
Related Issues (20)
- [Issue] Context3d fail to initialize on Android
- ABB and armv7? HOT 2
- [ISSUE] Digest and Encryption not working on IOS HOT 2
- When using SDK 50.2.4.5, error #2004 occurs in NetStream.play(). HOT 6
- [Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
- IOS Photo Library Access
- ANR extremely high on CPU: ARM Cortex-A53 (3,40%) HOT 2
- [ISSUE] TextField (input) issue on IOS HOT 1
- [AIR 51.0.1.1] Using `Stage` from native extension cause "`Error #2070: Security sandbox violation`" while `NetStream` in "Data Generation Mode" HOT 1
- AIR 50.2.5.1 "Asset validation failed" on TestFlight iOS HOT 3
- On Mac, the frequency of ProgressEvent.SOCKET_DATA event calls is affected by the framerate. HOT 1
- URL Loader: Crash when doing too many concurrent requests HOT 5
- "Embed" a font at runtime HOT 3
- This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered error HOT 22
- [Feature Request][Linux] Fullscreen on all monitors support
- `NativeWindow::resizeToScreen()` cause deformated fullscreen HOT 1
- error 102: Invalid namespace http://ns.adobe.com/air/application/51.0 HOT 16
- [AIR 51.0.1.1] `EncryptedLocalStore.setItem()` incorrect work
- [Issue] Asdoc bug treats "/" within RegExp literals incorrectly as a RegExp delimiter HOT 3
- Log and Ignore invalid SWFs file to be stripped HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.