-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
322 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- docs/** | ||
|
||
jobs: | ||
build-docs: | ||
name: Build documentation | ||
uses: emartech/me-workflows/.github/workflows/build-docs.yaml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
# What's new | ||
|
||
### [InApp](https://github.com/emartech/android-emarsys-sdk/wiki#3-inapp) | ||
|
||
* Added dark mode support for InApp and inline InApp messages. Please check the [GitHub wiki](https://github.com/emartech/android-emarsys-sdk/wiki#33-dark-mode) to see how to set up your application based on Android API level. | ||
|
||
### [Push](https://github.com/emartech/android-emarsys-sdk/wiki#2-push) | ||
|
||
* Added support for updatable and deletable push messages. | ||
|
||
# What's fixed | ||
|
||
### [DeepLink](https://github.com/emartech/android-emarsys-sdk/wiki#5-deeplink) | ||
|
||
* DeepLink tracking now works without the Mobile Engage feature enabled (without setting an application code). | ||
|
||
### [Push](https://github.com/emartech/android-emarsys-sdk/wiki#2-push) | ||
### [Inbox](https://github.com/emartech/android-emarsys-sdk/wiki#7-messageinbox) | ||
|
||
* Fixed an issue when sometimes interacting with a push message lasted for 5 seconds. | ||
* Fixed possible issue where a malformed URL could crash the SDK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: android-emarsys-sdk | ||
title: Android Emarsys SDK | ||
version: master | ||
start_page: ROOT:index.adoc | ||
nav: | ||
- modules/ROOT/nav.adoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* https://github.com/emartech/android-emarsys-sdk/wiki[Api] | ||
* xref:push.adoc[Push] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
== Android Emarsys SDK | ||
|
||
https://github.com/emartech/android-emarsys-sdk/blob/master/README.md[README] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
= Push | ||
|
||
== Styles | ||
|
||
Style can be `MESSAGE` , `THUMBNAIL`, `BIG_PICTURE`, `BIG_TEXT` or just leave out the whole property for Compatibility Mode | ||
|
||
== Rich Push | ||
|
||
Rich push messages can contain images, actions. | ||
The maximum number of actions in a push message is 3. See examples below. | ||
|
||
.App Event | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title":"Hello Demo!", | ||
"channel_id":"ems_sample_news", | ||
"u":{"sid":"asdf"}, | ||
"body":"This is a push message", | ||
"image_url":"https://firebase.google.com/images/social.png", | ||
"ems":{ | ||
"multichannelId":"campaignId", | ||
"style":"MESSAGE", | ||
"actions": [ | ||
{ | ||
"id": "id1", | ||
"title": "App event", | ||
"type": "MEAppEvent", | ||
"name": "AppEventName", | ||
"payload": {"key":"value", "key2":"vale"} | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
.ExternalUrl | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title":"Hello Demo!", | ||
"channel_id":"ems_sample_news", | ||
"u":{"sid":"asdf"}, | ||
"body":"This is a push message", | ||
"image_url":"https://firebase.google.com/images/social.png", | ||
"ems":{ | ||
"multichannelId":"campaignId", | ||
"style":"MESSAGE", | ||
"actions": [ | ||
{ | ||
"id": "id1", | ||
"title": "External Url", | ||
"type": "OpenExternalUrl", | ||
"url": "https://www.emarsys.com" | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
.CustomEvent | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title":"Hello Demo!", | ||
"channel_id":"ems_sample_news", | ||
"u":{"sid":"asdf"}, | ||
"body":"This is a push message", | ||
"image_url":"https://firebase.google.com/images/social.png", | ||
"ems":{ | ||
"multichannelId":"campaignId", | ||
"style":"MESSAGE", | ||
"actions": [ | ||
{ | ||
"id": "id3", | ||
"title": "Custom Event", | ||
"type": "MECustomEvent", | ||
"name": "testCustomEvent", | ||
"payload": {"key":"value", "key2":"vale"} | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
.Dismiss | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title":"Hello Demo!", | ||
"channel_id":"ems_sample_news", | ||
"u":{"sid":"asdf"}, | ||
"body":"This is a push message", | ||
"image_url":"https://firebase.google.com/images/social.png", | ||
"ems":{ | ||
"multichannelId":"campaignId", | ||
"style":"MESSAGE", | ||
"actions": [ | ||
{ | ||
"id": "id3", | ||
"title": "Dismiss", | ||
"type": "Dismiss" | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
=== Update/Delete | ||
|
||
Add notificationMethod to the `ems` object. | ||
Operation value can be INIT, UPDATE or DELETE The SDK is going to find the push notification based on its `collapseId` | ||
|
||
.notificationMethod | ||
[source,json] | ||
---- | ||
"notificationMethod": { | ||
"operation":"UPDATE", | ||
"collapseId":12345 | ||
}, | ||
---- | ||
|
||
.Example | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title": "Update - Push", | ||
"channel_id": "ems_sample_news", | ||
"u": { | ||
"sid": "asdf" | ||
}, | ||
"body": "Hello", | ||
"image_url": "https://firebase.google.com/images/social.png", | ||
"ems": { | ||
"multichannelId": "campaignId", | ||
"notificationMethod": { | ||
"operation":"UPDATE", | ||
"collapseId":12345 | ||
}, | ||
"actions": [ | ||
{ | ||
"id": "id1", | ||
"title": "Custom Event", | ||
"type": "MECustomEvent", | ||
"name": "customEventName", | ||
"payload": { | ||
"key": "value", | ||
"key2": "vale" | ||
} | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
== Silent Push | ||
|
||
No notification is going to be shown on the device but the SDK is going to trigger the app event at receive. | ||
|
||
.Example | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"ems": { | ||
"multichannelId": "campaignId", | ||
"silent": true, | ||
"actions": [ | ||
{ | ||
"id": "id1", | ||
"title": "App event", | ||
"type": "MEAppEvent", | ||
"name": "nameOfTheAppEvent", | ||
"payload": { | ||
"key": "value", | ||
"key2": "vale" | ||
} | ||
} | ||
] | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- | ||
|
||
== Push to in-app | ||
|
||
An in-app message is going to be shown at receive with the defined url. | ||
|
||
.Example | ||
[source,json] | ||
---- | ||
{ | ||
"to": "{{push_token}}", | ||
"data": { | ||
"title": "ALICE - Push", | ||
"channel_id": "ems_sample_news", | ||
"u": { | ||
"sid": "asdf" | ||
}, | ||
"body": "Hello", | ||
"image_url": "https://firebase.google.com/images/social.png", | ||
"ems": { | ||
"multichannelId": "campaignId", | ||
"inapp": { | ||
"campaign_id": "222", | ||
"url": "https://www.emarsys.com/" | ||
} | ||
}, | ||
"ems_msg": {} | ||
} | ||
} | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.