From a7a1c7435085550712f67bfafe807ad5d570d81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Ga=C5=BEo?= Date: Thu, 29 Jul 2021 18:18:31 +0200 Subject: [PATCH] fix/Documentation --- README.md | 2 ++ documentation/PUSH.md | 11 ++++++----- documentation/PUSH_IOS.md | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5ded035..df3a6fd 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ android { } ``` +Minimal supported Android API level for Exponea SDK is 21. + ## Documentation * [Basics concepts](./documentation/BASIC_CONCEPTS.md) * [Configuration](./documentation/CONFIGURATION.md) diff --git a/documentation/PUSH.md b/documentation/PUSH.md index 629942a..b5f537c 100644 --- a/documentation/PUSH.md +++ b/documentation/PUSH.md @@ -15,18 +15,19 @@ import 'package:exponea/exponea.dart'; final _plugin = ExponeaPlugin(); final subscription = _plugin.openedPushStream.listen((openedPush) { switch(openedPush.action) { - case PushAction.app: + case PushActionType.app: // last push directed user to your app with no link // log data defined on Exponea backend - print(openedPush.additionalData); + print('app - ${openedPush.data}'); break; - case PushAction.deeplink: + case PushActionType.deeplink: // last push directed user to your app with deeplink - print(openedPush.url); + print('deeplink - ${openedPush.url}'); break; - case PushAction.web: + case PushActionType.web: // last push directed user to web, nothing to do here + print('web'); break; } }); diff --git a/documentation/PUSH_IOS.md b/documentation/PUSH_IOS.md index 695e208..4cba303 100644 --- a/documentation/PUSH_IOS.md +++ b/documentation/PUSH_IOS.md @@ -67,7 +67,7 @@ To be able to send push notifications from Exponea backend, you need to connect You'll need a special permission for notifications visible to the user. To request it, call `ExponeaPlugin().requestIosPushAuthorization()` from **dart**. ```dart _plugin.requestIosPushAuthorization() -.then((accepted) => print(`User has ${accepted ? 'accepted': 'rejected'} push notifications.`)) +.then((accepted) => print("User has ${accepted ? 'accepted': 'rejected'} push notifications.")) .catchError((error) => print('Error: $error')); ```