Skip to content

Commit

Permalink
chore(changelog): add breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
stewones committed Jun 29, 2020
1 parent bce00fb commit b1adbd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ All notable changes to this project will be documented in this file. See [standa

### [1.0.5](https://github.com/capacitor-community/fcm/compare/v1.0.4...v1.0.5) (2020-06-29)


### Bug Fixes

* **android:** refactoring to match community standards. closes [#43](https://github.com/capacitor-community/fcm/issues/43) [#44](https://github.com/capacitor-community/fcm/issues/44) ([11761b8](https://github.com/capacitor-community/fcm/commit/11761b8f024422f89288f940c8a6a146b3ff9a5e))
- **android:** refactoring to match community standards. closes [#43](https://github.com/capacitor-community/fcm/issues/43) [#44](https://github.com/capacitor-community/fcm/issues/44) ([11761b8](https://github.com/capacitor-community/fcm/commit/11761b8f024422f89288f940c8a6a146b3ff9a5e))

### [1.0.4](https://github.com/capacitor-community/fcm/compare/v1.0.3...v1.0.4) (2020-06-27)
## Breaking change

- Android: replace `io.stewan.capacitor.fcm.FCMPlugin` to `com.getcapacitor.fcm.FCMPlugin` in your `MainActivity.java`

### [1.0.4](https://github.com/capacitor-community/fcm/compare/v1.0.3...v1.0.4) (2020-06-27)

### Bug Fixes

* contributor links ([73aa017](https://github.com/capacitor-community/fcm/commit/73aa01789a2356711542503c2b864653855c8a50))
- contributor links ([73aa017](https://github.com/capacitor-community/fcm/commit/73aa01789a2356711542503c2b864653855c8a50))

### [1.0.3](https://github.com/capacitor-community/fcm/compare/v1.0.2...v1.0.3) (2020-06-27)

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ npx cap sync
## Usage

```ts
import { Plugins } from "@capacitor/core";
import { Plugins } from '@capacitor/core';
const { PushNotifications } = Plugins;

//
// with type support
import { FCM } from "@capacitor-community/fcm";
import { FCM } from '@capacitor-community/fcm';
const fcm = new FCM();

//
Expand All @@ -85,7 +85,7 @@ PushNotifications.register()
// Subscribe to a specific topic
// you can use `FCMPlugin` or just `fcm`
fcm
.subscribeTo({ topic: "test" })
.subscribeTo({ topic: 'test' })
.then((r) => alert(`subscribed to topic`))
.catch((err) => console.log(err));
})
Expand All @@ -94,7 +94,7 @@ PushNotifications.register()
//
// Unsubscribe from a specific topic
fcm
.unsubscribeFrom({ topic: "test" })
.unsubscribeFrom({ topic: 'test' })
.then(() => alert(`unsubscribed from topic`))
.catch((err) => console.log(err));

Expand Down Expand Up @@ -172,7 +172,7 @@ Download the `google-services.json` file and copy it to `android/app/` directory
- add `google-services.json` to your `android/app` folder
- `[extra step]` in android case we need to tell Capacitor to initialise the plugin:

> on your `MainActivity.java` file add `import io.stewan.capacitor.fcm.FCMPlugin;` and then inside the init callback `add(FCMPlugin.class);`
> on your `MainActivity.java` file add `import com.getcapacitor.fcm.FCMPlugin;` and then inside the init callback `add(FCMPlugin.class);`
Now you should be set to go. Try to run your client using `ionic cap run android --livereload`.

Expand Down

0 comments on commit b1adbd7

Please sign in to comment.