Skip to content

Commit

Permalink
fix/Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekGazo committed Jul 29, 2021
1 parent 0f1e766 commit a7a1c74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 6 additions & 5 deletions documentation/PUSH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down
2 changes: 1 addition & 1 deletion documentation/PUSH_IOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
```

Expand Down

0 comments on commit a7a1c74

Please sign in to comment.