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

Somebody know how to add the notification globe in the app icon?

$
0
0

Yeah! I mean, I am using notifications in my APP, but I need that every time there is a notification when the app is on background it generates a globe containing the notifications number, just like Facebook Messenger when you get a new message.

Here's my code for notifications:

// When creating the app
var service = Ti.App.iOS.registerBackgroundService({url:'/ui/notification.js'});
 
// notification.js
var notification =    Ti.App.iOS.scheduleLocalNotification({
  alertBody:"El sorteo esta apunto de comenzar.",
  alertAction:"Abrir",
  userInfo:{"some":"info"},
  //sound:"pop.caf",
  date:new Date(new Date().getTime() + 9000) // after backgrounding
});

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>