Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil-roam committed Aug 4, 2022
1 parent 7548efe commit 1aa2cb7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.0.1

* First version of new Roam Cordova SDK
- First version of new Roam Cordova SDK

## 0.0.2

- Updated Android SDK v0.1.1
- Added `setForegroundNotification` method
- Fixed time and distance based tracking methods
- Fixed location listener
- Fixed `requestLocationPermission` and `requestBackgroundLocationPermission` methods
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Now that the location tracking is set up, you can subscribe to locations and eve
To do that, you need to set the location and event listener to `true` using the below method. By default the status will set to `false` and needs to be set to `true` in order to stream the location and events updates to the same device or other devices.

```javascript
cordova.plugins.roam.toggleListener(true, true,, function(success){
cordova.plugins.roam.toggleListener(true, true, function(success){
// do something on success
}, function(error){
// do something on error
Expand Down Expand Up @@ -303,6 +303,14 @@ cordova.plugins.roam.offEvents();
cordova.plugins.roam.offError();
```

## Set Foreground Notification

To set foreground notification, use the below method.

```javascript
cordova.plugins.roam.setForegroundNotification(boolean, "title", "description", "icon", "activity_path")
```

## Documentation

Please visit our [Developer Center](https://github.com/roam-ai/roam-cordova/wiki) for instructions on other SDK methods.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roam-cordova",
"version": "0.0.1",
"version": "0.0.2",
"description": "This plugin allows to use the Roam.ai SDK in your React Native mobile application on iOS and Android.",
"homepage": "https://roam.ai",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin
id="roam-cordova"
version="0.0.1"
version="0.0.2"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>roam</name>
Expand Down

0 comments on commit 1aa2cb7

Please sign in to comment.