taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

com.parse.ParsePushChannelsController.checkManifestAndLogErrorIfNecessary #63

Open Jinoooo opened 8 years ago

Jinoooo commented 8 years ago

Using the plugin generates the following error at startup on Android device after following all the configuration steps. Any idea what I am missing ?1

08-23 18:49:03.141 28520 28748 E PluginManager:     at com.parse.ParsePushChannelsController.checkManifestAndLogErrorIfNecessary(ParsePushChannelsController.java:69)
08-23 18:49:07.151  1012  1219 D ISSUE_DEBUG: InputChannelName : 867bd72 Application Error: x.y.z
08-23 18:49:07.251  1012  1219 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{867bd72 u0 d0 Application Error: x.y.z}
08-23 18:49:07.341  1012  1219 V WindowStateAnimator: Finishing drawing window Window{867bd72 u0 d0 Application Error: x.y.z}: mDrawState=DRAW_PENDING
08-23 18:49:07.361  1012  1219 V WindowStateAnimator: Finishing drawing window Window{867bd72 u0 d0 Application Error: x.y.z}: mDrawState=HAS_DRAWN

This happens when I try to access the ParsePushPlugin API for the first time (on device).

if (window.ParsePushPlugin) {
 ParsePushPlugin.subscribe('ABC', function() {
        alert("success");
      }, function(e) {
        alert("failure");
  });
}
taivo commented 7 years ago

Did you wrap the ParsePushPlugin call in some sort of document.ready() event handler?