OneSignal
Learn how to integrate ContextPush with OneSignal.
Last updated
Was this helpful?
Was this helpful?
{
"bundle_id": "com.contextsdk.demo",
"platform": "ios",
"user_id": "{{ user.external_id }}",
"content": {
"title": "It's time to get started with crypto",
"body": "Just upload your ID, and start trading now"
},
"deliver_within_hours": 6,
"campaign_id": "daily-reminder",
"delivery_method": "context_aware"
}{
"bundle_id": "com.contextsdk.demo",
"platform": "ios",
"user_id": "{{ user.external_id }}",
"content/title": "It's time to get started with crypto",
"content/body": "Just upload your ID, and start trading now",
"deliver_within_hours": 6,
"campaign_id": "daily-reminder",
"delivery_method": "context_aware"
}{%- assign userLang = user.language -%}
{
"bundle_id": "com.contextsdk.internal",
"platform": "ios",
"user_id": "{{ user.external_id }}",
"content/default_locale": "en",
"content/title/en": "{% if userLang == 'de' -%} James, es ist Zeit für deinen Englischkurs! {%- else -%} James, it's time for your english course! {%- endif %}",
"content/body/en": "{% if userLang == 'de' -%} Starte jetzt mit deinem Kurs! {%- else -%} Start course now because its a good time! {%- endif %}",
"deliver_within_hours": 3,
"campaign_id": "daily-reminder",
"delivery_method": "context_aware"
}