푸시 알림
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
개요
또한 Google 모바일 데이터 요금제 공유 API를 사용하면 운영자가 PlanStatus를 푸시하여 사용자에게 알림을 보낼 수 있습니다.
API는 현재 7가지 유형의 알림을 지원합니다.
- 잔액 부족: PlanModule.coarseBalanceLevel이 LOW_QUOTA으로 설정된 경우
- Out of Data: PlanModule.coarseBalanceLevel이 OUT_OF_DATA로 설정된 경우
또한 PlanModule.overUsagePolicy가 PAY_AS_YOU_GO로 설정되어 있으면 사용한 만큼만 지불 모드로 전환된다는 알림을 받게 됩니다.
- 데이터 만료 경고: PlanModule.planModuleState가 EXPIRING_SOON으로 설정된 경우
- 요금제 활성화: PlanModule.planModuleState가 NEWLY_ACTIVE로 설정된 경우
- 사용한 만큼만 지불: AccountInfo.payAsYouGoCharge에 사용자가 지출한 금액이 채워집니다.
- 계정 충전: AccountInfo.accountTopUp 및 AccountInfo.accountBalance가 채워지는 경우 사용자에게 계정 상단 알림을 보내려면 이 두 필드가 필요합니다. AccountInfo.accountTopUp의 단위와 nano가 0으로 설정된 경우 충전 금액이 알림에 표시되지 않습니다.
- 데이터 만료: PlanModule.planModuleState가 EXPIRED로 설정된 경우.
이미 만료된 요금제입니다.
각 필드 세트마다 하나의 알림이 사용자에게 전송됩니다. 여러 coarseBalanceLevel
또는 planModuleState
필드가 PlanStatus
하나에 설정된 경우 사용자에게 동일한 수의 알림이 전송됩니다.
요구사양
PlanStatus 알림에 사용자의 모바일 계획에 관한 정보를 최대한 많이 포함해야 합니다(SHOULD). Data Plan Sharing API는 각 알림 유형에 대해 알림 텍스트를 빌드하는 데 필요한 최소 필드 집합도 정의합니다. 연산자는 PlanPlan에 알림 필드를 포함해야 합니다(MUST).
알림 |
필수 필드 |
잔액 부족 |
PlanModule.moduleName, PlanModule.byteBalance.remainingBytes |
데이터 없음 |
PlanModule.moduleName |
데이터 만료 경고 |
PlanModule.moduleName, PlanModule.expirationTime |
요금제 활성화 |
PlanModule.moduleName |
데이터 만료 |
PlanModule.moduleName |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2022-09-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2022-09-26(UTC)"],[[["The Google Mobile Data Plan Sharing API enables operators to send seven types of notifications to users regarding their mobile data plans by pushing a PlanStatus."],["Notifications include alerts for low balance, out of data, data expiration warning/expiration, plan activation, pay as you go charges, and account top-ups."],["Each notification type requires a specific set of fields within the PlanStatus, including module name, balance details, and expiration time, to generate informative notification text."],["Multiple notifications can be triggered simultaneously if several fields like `coarseBalanceLevel` or `planModuleState` are set within a single PlanStatus."],["Operators should include as much relevant user plan information as possible within each notification PlanStatus for a comprehensive user experience."]]],[]]