Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Sending notifications to pebble watch

$
0
0

Hi,

since a week I'm owner of pebble watch and try to play with it.

As you can see, the watch is connected by module from com.mcongrove.pebble

[DEBUG] :  Pebble: (KrollRuntimeThread) [15,52066] connect
[DEBUG] :  Pebble: (KrollRuntimeThread) [36,52102] listenToConnectedWatch: Listening
[DEBUG] :  Pebble: (KrollRuntimeThread) [5,52107] connect: Messages supported
[INFO] :   Connected to Pebble
All notificatins from skype, telephone, twitter comes to my watch, but if I try to send from my own app:
Ti.Android.NotificationManager.notify(1, Ti.Android.createNotification({
        contentTitle : _args.title.trim(),
        contentText : 'beginnt in 10 Minuten auf ' + _args.station,
        contentIntent : Ti.Android.createPendingIntent({
            intent : Ti.Android.createIntent({})
        }),
        playSound : true,
        sound : Ti.Filesystem.getResRawDirectory() + 'kkj', 
        icon : Ti.App.Android.R.drawable.appicon,
        number : 1,
        when : Moment(_args.time_isostring).toDate()
    }));
then I see it on my main tray:

What's going wrong?


Viewing all articles
Browse latest Browse all 8068

Trending Articles