-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ionic2 - installation not saved #107
Comments
Hello, Have you tried calling manual registration? Something like this in your app.component.ts:
or setting up the following line in the config.xml
|
Thank a lot @cleever for the helping, I've just tried and also it is not working yet :'( .The Installation class continues empty. I'm going to share you my AndroidManifest.xml
` |
Your AndroidManifest.xml seems fine. Also, what about the following line in your config.xml ?
|
Yes I did put the register function in platdorm.ready() and also a message if it is succesful or there is some error, and the succesful message is thrown, but still no creating the installation. About the ParseAppId, yes I added in my code, sorry my mistake I did not added above, I'll update. |
Ok. Try to set your clientKey on parse-server, and restart the server.
|
It is frustrating, also that way is not working, but shouldn't be requiered as well as clientKey is used with Parse are no longer necessary with Parse Server. |
After debugging I see that this part of the code is thowing an error (ParsePushApplication.java line79): ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {
` The error is:
|
Strange... I have ionic1 and ionic2 apps working well with this plugin, with the same configuration:
At config.xml:
That's is all you need to get the plugin working. |
can you please tell me how to import into ts file |
@drmark1989 if you are using ionic2, the only thing you need is add this line in your ts file:
The place where you should add is after the imports, like this:
That is it! Regards |
Hi I'm using ionic2, but it never creates the installation, is something more what we should change in order to use ionic2 ?, ParsePushPlugin.getInstallationId is working fine, it gets me an id, but when I check in database the "Installation" class continues empty, do you have any idea what it could be?
Thanks in advance.
Here is my configuration in parse server:
`
var api = new ParseServer({
}
});
`
My cloud function:
`
Parse.Cloud.define('sendPush', function(request, response) {
});
`
In ionic2 after install parse-push-plugin, I added this to my config.xml:
`
In my ts file after the imports:
`
declare var ParsePushPlugin: any;
`
Then in the constructor class:
`
ParsePushPlugin.getInstallationId(function(id) {
`
This last part gets me the installation id, but after check in database none row is created! Please help, I'm missing some configuration? Thanks in advance
The text was updated successfully, but these errors were encountered: