Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Issue #777: Should I call init() every time the app is launched?
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Apr 4, 2016
1 parent 696d3fd commit 8308180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Initializes the plugin on the native side.

**Note:** like all plugins you must wait until you receive the [`deviceready`](https://cordova.apache.org/docs/en/5.4.0/cordova/events/events.deviceready.html) event before calling `PushNotification.init()`.

**Note:** you will want to call `PushNotification.init()` each time your app starts. The remote push service can periodically reset your registration ID so this ensures you have the correct value.

### Returns

- Instance of `PushNotification`.
Expand Down

0 comments on commit 8308180

Please sign in to comment.