phonegap-parse-plugin icon indicating copy to clipboard operation
phonegap-parse-plugin copied to clipboard

No registered devices

Open NathanHazout opened this issue 10 years ago • 2 comments

The readme says Once the device is ready, call parsePlugin.initialize(). This will register the device with Parse, you should see this reflected in your Parse control panel.

Where on the Parse control panel should I see it? I received an installation id, but I don't see any data in the data browser. The list stays empty.

I am trying on emulators (both android and ios). I did not do anything else that the readme file to get started. I'm thinking maybe I am missing some prerequisite steps, but at the same time why would I received a installation id if something failed along the way??

      parsePlugin.initialize(PARSE_APP_ID, PARSE_KEY, function() {

        parsePlugin.subscribe('all', function() {

          parsePlugin.getInstallationId(function(id) {

            alert(id);

          }, function(e) {
            alert('error');
          });

        }, function(e) {
          alert('error');
        });

      }, function(e) {
        alert('error');
      });

Even if I didn't do a subscribe, I should see the installation entry anyways no?

NathanHazout avatar Mar 01 '15 19:03 NathanHazout

Looking at the native parts of the plugin, I see that you are using saveInBackground() and returning cordova success regardless of if the saving was successful.

Shouldn't we wait for the save's status to decide if the action was successful?

This makes debugging hard, because in the case of getCurrentInstallation, I think it's what's giving me an installation ID regardless of the success of the save. I'm basically seeing the local Installation object even if it was never saved.

I'm no expert, that's what I understand from the code.

NathanHazout avatar Mar 03 '15 17:03 NathanHazout

I have the same issue. I am not using Parse for anything else so I wonder if that's the issue? I notice that this fork https://github.com/taivo/parse-push-plugin has a register method absent from this one.

Matt2012 avatar Mar 29 '15 21:03 Matt2012