-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8381 from braze-inc/i18n_phrase-ja
File uninstall_tracking.md committed.
- Loading branch information
Showing
272 changed files
with
8,160 additions
and
3,002 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,178 @@ | ||
--- | ||
nav_title: ブレイズ・アクション ディープリンク | ||
article_title: ブレイズ・アクション ディープリンク | ||
page_order: 100 | ||
description: "このリファレンス記事では、Brazeアクションディープリンクを使用して、メッセージングチャネルボタン内でSDKアクションを実行する方法について説明する。" | ||
hidden: true | ||
--- | ||
|
||
# ブレイズ・アクション ディープリンク | ||
|
||
> Braze Actionsを使えば、「ディープリンク」を使ってネイティブSDKの機能を実行できる。<br><br>Braze ダッシュボードには、いくつかの標準的なクリック時アクション (プッシュ通知の権限を要求、カスタムイベントをログに記録、カスタム属性をログに記録) が含まれており、アプリ内メッセージやコンテンツカードで使用することができます。<br><br>その他のすべてのアクション、または複数のアクションを組み合わせる場合は、このガイドを使用して独自のBraze Actionディープリンクを構築する。 | ||
## SDKサポート | ||
|
||
{% sdk_min_versions swift:5.4.0 android:21.0.0 web:4.0.3 %} | ||
|
||
`brazeActions://` ディープリンク・スキームは、アプリ内メッセージやコンテンツ・カード内にディープリンクやリダイレクト・オプションがあれば、どこでも使用できる。 | ||
|
||
HTML アプリ内メッセージの場合、HTML メッセージタイプではディープリンクはサポートされていないため、代わりに [`Javascript Bridge`]({{site.baseurl}}/user_guide/message_building_by_channel/in-app_messages/customize/#javascript-bridge) を使用してください。 | ||
|
||
## スキーマ | ||
|
||
複数のアクションの `steps` を `container` アクションタイプに含めることができます。`container` を含まない単一のステップも有効です。 | ||
|
||
```json | ||
{ | ||
"type": "container", | ||
"steps": [] | ||
} | ||
``` | ||
|
||
個々の `step` には、アクションの `type` とオプションの `args` 配列が含まれています。 | ||
|
||
```json | ||
{ | ||
"type": "logCustomEvent", | ||
"args": ["event name", {"event": ["properties"]}] | ||
} | ||
``` | ||
|
||
## URI | ||
|
||
Braze ActionsのURIスキームは`brazeActions://v1/{base64encodedJsonString}` 。 | ||
|
||
次のJavaScriptは、JSON文字列のエンコードとデコードの方法を示している: | ||
|
||
```javascript | ||
function decode(encoded) { | ||
const binary = window.atob(encoded.replace(/-/g, '+').replace(/_/g, '/')); | ||
let bits8 = new Uint8Array(binary.length); | ||
for (let i = 0; i < binary.length; i++) { | ||
bits8[i] = binary.charCodeAt(i); | ||
} | ||
const bits16 = new Uint16Array(bits8.buffer); | ||
return String.fromCharCode(...bits16); | ||
} | ||
|
||
/** | ||
* Returns a url-safe base64 encoded string of the input. | ||
* Unicode inputs are accepted. | ||
* Converts a UTF-16 string to UTF-8 to comply with base64 encoding limitations. | ||
*/ | ||
function encode(input) { | ||
// Split the original 16-bit char code into two 8-bit char codes then | ||
// reconstitute a new string (of double length) using those 8-bit codes | ||
// into a UTF-8 string. | ||
const codeUnits = new Uint16Array(input.length); | ||
for (let i = 0; i < codeUnits.length; i++) { | ||
codeUnits[i] = input.charCodeAt(i); | ||
} | ||
const charCodes = new Uint8Array(codeUnits.buffer); | ||
let utf8String = ""; | ||
for (let i = 0; i < charCodes.byteLength; i++) { | ||
utf8String += String.fromCharCode(charCodes[i]); | ||
} | ||
return btoa(utf8String).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); | ||
} | ||
``` | ||
|
||
## 対応アクション | ||
|
||
|タイプ|引数| | ||
|--|--| | ||
|`container`|実行する他のアクションの配列| | ||
|`logCustomEvent`|1. `event name`<br>2. `event properties JSON object` (オプション)| | ||
|`setEmailNotificationSubscriptionType`|`"opted_in" | "subscribed" | "unsubscribed"`| | ||
|`setPushNotificationSubscriptionType`|`"opted_in" | "subscribed" | "unsubscribed"`| | ||
|`setCustomUserAttribute`|1. `attribute_name`<br>2. `attribute_value`| | ||
|`requestPushPermission`| 該当なし | | ||
|`openLink`|1. `url`<br>2\.`openInNewTab` (boolean)| | ||
|`openLinkInWebview`| `url`| | ||
|`addToSubscriptionGroup`| `subscriptionGroupId`| | ||
|`removeFromSubscriptionGroup`| `subscriptionGroupId`| | ||
|`addToCustomAttributeArray`|1. `attribute_name`<br>2. `attribute_value`| | ||
|`removeFromCustomAttributeArray`|1. `attribute_name`<br>2. `attribute_value`| | ||
|
||
## JSONエンコーダー | ||
|
||
JSON文字列を入力すると、結果の`brazeActions://` URIが表示される。または、`brazeActions://` URIを入力してJSONをデコードする。 | ||
|
||
<div><h4>JSON入力</h4></div> | ||
<textarea id="braze-actions-input" rows="12"></textarea> | ||
<div><h4>ディープリンク出力</h4></div> | ||
<textarea id="braze-actions-output" rows="6"></textarea> | ||
<style> | ||
#braze-actions-input, #braze-actions-output { | ||
width: 90%; | ||
border: solid 1px #1f1f1f !important; | ||
margin-top: 10px; | ||
border-radius: 4px; | ||
font-family: courier; | ||
font-size: 14px; | ||
padding: 4px; | ||
} | ||
</style> | ||
<script> | ||
(function(){ | ||
const input = document.getElementById('braze-actions-input'); | ||
const output = document.getElementById('braze-actions-output'); | ||
var debouncer; | ||
input.oninput = function(event){ | ||
clearTimeout(debouncer); | ||
debouncer = setTimeout(function(){ | ||
try { | ||
const jsonString = event.target.value.replace(/^\s+|\s+$/g, ''); | ||
output.value = `brazeActions://v1/${encode(jsonString)}` | ||
} catch(e){ | ||
output.value = `Invalid JSON`; | ||
} | ||
}, 100); | ||
} | ||
output.oninput = function(event){ | ||
clearTimeout(debouncer); | ||
debouncer = setTimeout(function(){ | ||
try { | ||
const base64 = event.target.value.replace(/^brazeActions:\/\/v\d+\//, '').replace(/\s/g, ''); | ||
const json = JSON.parse(decode(base64)); | ||
input.value = JSON.stringify(json, null, 4); | ||
} catch(e){ | ||
input.value = `Invalid brazeActions:// link`; | ||
} | ||
}, 100); | ||
} | ||
|
||
input.value = JSON.stringify({ | ||
"type": "container", | ||
"steps": [{ | ||
"type": "addToSubscriptionGroup", | ||
"args": ["your-subscription-group-ID-here"] | ||
}] | ||
}, null, 2); | ||
input.dispatchEvent(new Event("input")); | ||
|
||
function decode(encoded) { | ||
const binary = window.atob(encoded.replace(/-/g, '+').replace(/_/g, '/')); | ||
let bits8 = new Uint8Array(binary.length); | ||
for (let i = 0; i < binary.length; i++) { | ||
bits8[i] = binary.charCodeAt(i); | ||
} | ||
const bits16 = new Uint16Array(bits8.buffer); | ||
return String.fromCharCode(...bits16); | ||
} | ||
|
||
|
||
function encode(input) { | ||
const codeUnits = new Uint16Array(input.length); | ||
for (let i = 0; i < codeUnits.length; i++) { | ||
codeUnits[i] = input.charCodeAt(i); | ||
} | ||
const charCodes = new Uint8Array(codeUnits.buffer); | ||
let utf8String = ""; | ||
for (let i = 0; i < charCodes.byteLength; i++) { | ||
utf8String += String.fromCharCode(charCodes[i]); | ||
} | ||
return btoa(utf8String).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); | ||
} | ||
})(); | ||
</script> |
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,74 @@ | ||
--- | ||
page_order: 90 | ||
nav_title: 変更履歴 | ||
layout: dev_guide | ||
guide_top_header: "Braze SDK 変更ログ" | ||
guide_top_text: "Braze Docs または個々の GitHub リポジトリ内で、各 SDK の以下の変更ログを利用できます。" | ||
description: "このランディングページでは、Braze Docs および個々の GitHub リポジトリ内で利用可能な各 SDK の変更ログが一覧にされています。" | ||
|
||
guide_featured_title: "Braze Docs の変更ログ" | ||
guide_featured_list: | ||
- name: Android SDK | ||
link: /docs/developer_guide/platform_integration_guides/android/changelog/ | ||
image: /assets/img/braze_icons/android.svg | ||
- name: iOS SDK (Swift) | ||
link: /docs/developer_guide/platform_integration_guides/swift/changelog/ | ||
image: /assets/img/braze_icons/apple.svg | ||
- name: iOS SDK (Objective-C) | ||
link: /docs/developer_guide/platform_integration_guides/ios/changelog/objc_changelog/ | ||
image: /assets/img/braze_icons/apple.svg | ||
- name: ウェブSDK | ||
link: /docs/developer_guide/platform_integration_guides/web/changelog/ | ||
image: /assets/img/braze_icons/globe-02.svg | ||
- name: Cordova SDK | ||
link: /docs/developer_guide/platform_integration_guides/cordova/changelog/ | ||
image: /assets/img/cordova.png | ||
- name: Flutter SDK | ||
link: /docs/developer_guide/platform_integration_guides/flutter/changelog/ | ||
image: /assets/img/flutter_icon.png | ||
- name: React Native | ||
link: /docs/developer_guide/platform_integration_guides/react_native/changelog/ | ||
image: /assets/img/reactnative_icon.png | ||
- name: Unity SDK | ||
link: /docs/developer_guide/platform_integration_guides/unity/changelog/ | ||
image: /assets/img/unity.png | ||
- name: Xamarin | ||
link: /docs/developer_guide/platform_integration_guides/xamarin/changelog/ | ||
image: /assets/img/xamarin.png | ||
- name: Roku SDK | ||
link: /docs/developer_guide/platform_integration_guides/roku/changelog/ | ||
image: /assets/img/roku.png | ||
|
||
guide_menu_title: "Changelogs on GitHub" | ||
guide_menu_list: | ||
- name: Android SDK | ||
link: https://github.com/braze-inc/braze-android-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/braze_icons/android.svg | ||
- name: iOS SDK (Swift) | ||
link: https://github.com/braze-inc/braze-swift-sdk/blob/main/CHANGELOG.md | ||
image: /assets/img/braze_icons/apple.svg | ||
- name: iOS SDK (Objective-C) | ||
link: https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/braze_icons/apple.svg | ||
- name: ウェブSDK | ||
link: https://github.com/braze-inc/braze-web-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/braze_icons/globe-02.svg | ||
- name: Cordova SDK | ||
link: https://github.com/Appboy/appboy-cordova-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/cordova.png | ||
- name: Flutter SDK | ||
link: https://github.com/braze-inc/braze-flutter-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/flutter_icon.png | ||
- name: React Native | ||
link: https://github.com/braze-inc/braze-react-native-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/reactnative_icon.png | ||
- name: Unity SDK | ||
link: https://github.com/Appboy/appboy-unity-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/unity.png | ||
- name: Xamarin | ||
link: https://github.com/braze-inc/braze-xamarin-sdk/blob/master/CHANGELOG.md | ||
image: /assets/img/xamarin.png | ||
- name: Roku SDK | ||
link: https://github.com/braze-inc/braze-roku-sdk/blob/main/CHANGELOG.md | ||
image: /assets/img/roku.png | ||
--- |
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,35 @@ | ||
--- | ||
nav_title: コンテンツカード | ||
article_title: コンテンツカードのカスタマイズ | ||
layout: dev_guide | ||
page_order: 5 | ||
channel: | ||
- content cards | ||
platform: | ||
- Android | ||
- FireOS | ||
- Swift | ||
- Web | ||
|
||
guide_top_header: "コンテンツカードのカスタマイズ" | ||
guide_top_text: "コンテンツカードは、インタラクティブで視覚的に魅力的な要素であり、パーソナライズされた訴求力の高いコンテンツをユーザーに配信するために使用できます。コンテンツカードとコンテンツカードが置かれているフィードのカスタマイズは、オンボーディング時に行うか、Braze を使用して発展しながら行うことができます。また、完全にカスタム化された新しいコンテンツカードタイプとログ分析を作成して、Braze ダッシュボードが新しいタイプのカードの成功度を追跡できるようにすることもできます。" | ||
description: "このランディングページは、Braze SDK コンテンツカードを複数のプラットフォーム向けにカスタマイズするためのさまざまな方法のリンクを掲載しています。" | ||
|
||
guide_featured_title: "セクションの記事" | ||
guide_featured_list: | ||
- name: コンテンツカードスタイルのカスタマイズ | ||
link: /docs/developer_guide/customization_guides/content_cards/customizing_styles | ||
image: /assets/img/braze_icons/brush-02.svg | ||
- name: コンテンツカードの動作のカスタマイズ | ||
link: /docs/developer_guide/customization_guides/content_cards/customizing_behavior/ | ||
image: /assets/img/braze_icons/settings-01.svg | ||
- name: デフォルトのコンテンツカードフィードのカスタマイズ | ||
link: /docs/developer_guide/customization_guides/content_cards/customizing_feed/ | ||
image: /assets/img/braze_icons/book-closed.svg | ||
- name: 分析のロギング | ||
link: /docs/developer_guide/customization_guides/content_cards/logging_analytics/ | ||
image: /assets/img/braze_icons/navigation-pointer-01.svg | ||
- name: カスタムコンテンツカードの作成 | ||
link: /docs/developer_guide/customization_guides/content_cards/creating_custom_content_cards | ||
image: /assets/img/braze_icons/switch-horizontal-01.svg | ||
--- |
Oops, something went wrong.