2
내 앱에 GCM에 들어있는 알림이 있지만 모든 알림이 하나의 대상에 표시되므로 2 ~ 3 개의 알림을 받으면 성가신 것으로 보입니다.IOS에있는 whatsapp와 같은 알림을 그룹화하는 방법
내 앱의 한 대상에있는 모든 알림을 그룹화하는 방법은 무엇입니까? 나는 그것이 안드로이드와 같을 것이라고 생각합니다, 나는 어떤 ID로 알림을 식별해야하지만 그것에 관한 어떤 정보도 찾지 못했습니다.
// [START ack_message_reception]
func application(application: UIApplication,
didReceiveRemoteNotification userInfo: [NSObject :AnyObject]) {
print("Notification received: \(userInfo)")
// This works only if the app started the GCM service
GCMService.sharedInstance().appDidReceiveMessage(userInfo);
// Handle the received message
// [START_EXCLUDE]
NSNotificationCenter.defaultCenter().postNotificationName(messageKey, object: nil,
userInfo: userInfo)
// [END_EXCLUDE]
}
그리고 GCM 메시지 코드는 다음과 같습니다 :
array('body' => 'Someone wants to practice with you !!!',
"sound" => "default",
"vibrate" => "1",
"time_to_live" => "1"
);
여러분의 도움에 감사드립니다
앱이 배경에있을 때 실행 코드를 이잖아.
누군가를 알고 있습니까? 또는 나는 그렇게 나쁘게 설명하고 있냐? :( – Roke