Closed c-h- closed 8 years ago
The ReactNative support may not work due to this commit where we add an applicationID
from this plugin. Technically, we should reverse that commit since Cordova has fixed it (more details in #157 )
react native added as a separate plugin
Only small changes needed to be made to this plugin to support React Native on Android.
The major change is that references to
window
anddocument
are not available, so events are not possible. This fork checks for existence of document before using events, and allows custom callbacks to be set to receive push notifications in JS.The usage instructions have to be modified a bit because there is no global window object, and therefore no global cordova object in React Native. Those changes are reflected in the new section in the Readme.