Well, for Android I know we can define programmatically how the app
behaves when the notification arrives to the notification tray. For iPhone
I don't know, but I read this (among other things):
"I just figured out one way to do this [vibrate without sound]: if you want
to phone to *only* vibrate on receipt of a push notification, you need to
have a silent sound file in your application bundle, for example
"silence.aif" ... if you specify that sound file in the APS notification,
the iOS device will "play" the silence.aif from your application bundle,
but since the sound is silence, there is nothing to hear. However the
notification vibration is still triggered"
And also this about push notifications on Facebook:
For any of you's who have been frustrated with no sounds for notifications
on Facebook, and to those who despises them!
There is now a fix for both worlds..Yes Facebook finally fixed their
facebook notification sounds on iPhone. This post is for the people who
enjoy getting facebook notifications, like me!
-Go to the facebook app on phone
-Go to Account Settings
-Go to Notifications
-Go to Mobile Push
-Look at the top of the screen, go to where it says "Sound for push
notifications"
-Edit it to ON for all notifications
Enjoy guys. And for those who don't want sound than don't edit this and
leave at default!!
On Thu, Mar 20, 2014 at 7:37 AM, Erik Jan de Wit <edewit(a)redhat.com> wrote:
There is nothing we can do about that, when the notification arrives
the
phone will vibrate in accordance with the user preferences. iPhone Settings
> Sound - Android Settings > Device > Sound > Default notification
Cheers,
Erik Jan
On 19 Mar,2014, at 22:45 , Miguel Lemos <miguel21op(a)gmail.com> wrote:
In Android the notification triggers the sound, vibrate, etc. But indeed
the problem is that this should happen (or not...), as I said, when it
arrives at the notification tray.
On Wed, Mar 19, 2014 at 5:59 PM, Miguel Lemos <miguel21op(a)gmail.com>wrote:
> * not after I pressed...
>
>
> On Wed, Mar 19, 2014 at 5:58 PM, Miguel Lemos <miguel21op(a)gmail.com>wrote:
>
>> Yes, the sounds can be defined by the app.
>>
>> > In the iOS case (with Cordova) the only way to make the sound play
>> that I know is to put the file in the project's root and pointing to it. I
>> tested and it works. Not that i use it very much, but sometimes it's
>> needed...
>>
>> > The function you use to play a sound along with the notification is:
>>
>> if (e.sound) { var media = new Media("/android_asset/www/" + e.sound);
>> media.play(); }
>>
>> I didn't manage to make it work. Anyway I think it would be more
>> "normal" a function like the one I sent. But, as I told before, the
>> vibration and / or sound play only makes sense when the notification
>> arrives in the notification area, not before I pressed on it.
>>
>> Mind for instance a geofenced notification:the user must see it at the
>> moment it arrives, and not 30 minutes later. In this case the vibration or
>> sound are very important.
>>
>>
>> On Wed, Mar 19, 2014 at 5:44 PM, Burr Sutter <bsutter(a)redhat.com> wrote:
>>
>>> Are there no "out-of-the-box" sounds for Android?
>>>
>>> I thought the iOS sounds were not driven by the indiviual app.
>>>
>>>
>>> On Mar 19, 2014, at 1:40 PM, Sebastien Blanc <scm.blanc(a)gmail.com>
>>> wrote:
>>>
>>>
>>>
>>>
>>> On Wed, Mar 19, 2014 at 5:50 PM, Miguel Lemos <miguel21op(a)gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> The sound event when the notification arrives doesn't seem to work
(at
>>>> least on iPhone; Android not tested yet).
>>>>
>>>> And yes: the sound plugin is installed and working just fine.
>>>>
>>>> Besides, I don't understand quite well the way you build the event.
>>>> Example given by you for Android:
>>>>
>>>> var my_media = new Media("/android_asset/www/" + e.sound);
>>>>
>>>> ..What sound? I can have several sounds on a given folder...
>>>>
>>> I haven't play too much with sound but e.sound is supposed to contain
>>> the filename of your sound file (like beep.wav / sirene.wav ...)
>>>
>>>>
>>>> I think a better - and more trivial - approach would be something like
>>>> this (just an opinion...):
>>>>
>>>> if (e.sound) {
>>>> if (device.platform == "Android") {
>>>> media = new Media("/android_asset/www/beep.wav");
>>>> } else if (device.platform == "iOS") {
>>>> media = new Media("beep.wav"); // root directory
>>>> }
>>>> media.play();
>>>> }
>>>>
>>>>
>>>> Thanks guys :-)
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>
>>
>
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev