In Pushwoosh API on "createMessage" Method i see two parametrs: "android_sound" : "soundfile", // Optional. Sound file name in the "res/raw" folder, do not include the extension "ios_sound": "sound file.wav", // Optional. Sound file name in the main bundle of application

I build the application with Visual Studio Tools for Apache Cordova.

As I understand in cordova CLI build i have accsess only for "www" folder?

Where to upload my sounds - for android and for IOS? and whether it is possible to establish a melody using plugin Pushwoosh plugin for Cordova?

This question is marked "community wiki".
asked 06 Feb '15, 00:16
MrPro100's gravatar image

MrPro100
3613

Hi,

Please see the Pushwoosh Cordova app sample in the GitHub repo:

Android: https://github.com/Pushwoosh/pushwoosh-sdk-samples/tree/master/Phonegap-Cordova/Android-Phonegap/res/raw

So you should place your sound file into the res/raw folder, which should be located in the root folder of your project.

As for iOS, you need to place the sound file in the resources folder. You can see its location in the sample app:

https://github.com/Pushwoosh/pushwoosh-sdk-samples/tree/master/Phonegap-Cordova/iPhone-Phonegap/Phonegap-Push/Resources

(20 Feb '15, 09:51) Andrew_H Andrew_H's gravatar image

You see the thing is that when I build the application I do not have access to the «res» folder. I usage Visual Studio Tools for Apache Cordova, and when I click build button everything happens automatically and on the output I get .apk file. I can not copy file to “platforms\android\res” and then build. With each new build - old folder platforms\android cleared. Is it possible set path to sound file on “www” folder?

(20 Feb '15, 10:14) MrPro100 MrPro100's gravatar image

Hi,

Are you able to put the sound file into the www/res folder? If yes, could you please try to do that?

(17 Mar '15, 11:19) Andrew_H Andrew_H's gravatar image

Yes I put sound file into the www/res folder and when i send push message from dashboard i set Sound: " www/res/test" - it not work.

I resolve my problem in Visual Studio Cordova project i added sound into the foler - \res\native\android\res\raw

After build song file copied to - \bld\Debug\platforms\android\res\raw

permanent link
answered 20 Mar '15, 12:51
MrPro100's gravatar image

MrPro100
3613

For iOS, I put my sound in the resources folder, which works for the push outside of the app. Within the app, there is no sound. How do I make that work?

permanent link
answered 04 Mar '16, 23:31
Earl's gravatar image

Earl
114

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×190
×165
×20

question asked: 06 Feb '15, 00:16

question was seen: 4,021 times

last updated: 04 Mar '16, 23:31