Hi there,
I'm not sure if this is a Kii issue but when my App is not in the foreground and I receive a push in Android, the device makes no vibration, it does sound and I can see the notification, but I want the device to vibrate.
I've been trying lots of things, but here's the last version I tried:
KiiTopic topic = user.Topic(topicName);
KiiPushMessageData data = new KiiPushMessageData();
data.Put("title", title);
data.Put("vibrate", 1);
data.Put("sound", 1);
data.Put("msg", msg);
GCMMessage gcm = GCMMessage.CreateBuilder()
.Build();
APNSData apnsData = new APNSData();
apnsData.Put("From", from)
.Put("MsgBody", msg)
.Put("Priority", 1)
.Put("Urgent", false);
APNSMessage apns = APNSMessage.CreateBuilder()
.WithAlertBody(msg)
.WithSound("default")
.WithAPNSData(apnsData).Build();
KiiPushMessage message = KiiPushMessage.BuildWith(data)
.WithGCMMessage(gcm)
.WithAPNSMessage(apns)
.Build();
topic.SendMessage(message, (KiiPushMessage pmsg, Exception e1) => {
if (e1 != null)
{
}
});
Thank you very much.