Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
110 stars 139 forks source link

Experimental React Native Android Support #175

Closed c-h- closed 8 years ago

c-h- commented 8 years ago

Only small changes needed to be made to this plugin to support React Native on Android.

The major change is that references to window and document 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.

axemclion commented 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 )

shaders commented 8 years ago

react native added as a separate plugin