0
구문 분석을 사용하여 알림을 푸시합니다. 장치 언어에 따라 알림을 보내려고합니다. 질문은 다중 언어로 알림을 보내려면 어떻게합니까? 이 일을 할 수있는 방법이 있습니다 .. !!다중 언어 구문 분석 중
도와주세요
구문 분석을 사용하여 알림을 푸시합니다. 장치 언어에 따라 알림을 보내려고합니다. 질문은 다중 언어로 알림을 보내려면 어떻게합니까? 이 일을 할 수있는 방법이 있습니다 .. !!다중 언어 구문 분석 중
도와주세요
사용자 언어 선택을 설치 개체에 저장할 수 있습니다.
사용하여 아이폰 OS 예 :
PFQuery *query = [PFInstallation query];
[query whereKey:@"language" equalTo:@"english"];
NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
@"Yo", @"alert", @"yo.caf", @"sound", nil];
PFPush *push = [[PFPush alloc] init];
[push setQuery:query];
[push setData:data];
[push sendPushInBackground];
:
PFInstallation *current = [PFInstallation currentInstallation];
[current setObject:@"english" forKey:@"language"];
[current saveEventually];
은 그럼 당신은 언어를 기반으로 쿼리에 밀어 수 있습니다