phonegap-parse-plugin
phonegap-parse-plugin copied to clipboard
No registered devices
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?
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.
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.