Skip to content
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

null Installation ID #43

Closed
andrescruz opened this issue Jun 10, 2016 · 4 comments
Closed

null Installation ID #43

andrescruz opened this issue Jun 10, 2016 · 4 comments

Comments

@andrescruz
Copy link

I installed the plugin to my Ionic project but I'm getting a null value as a result from ParsePushPlugin.getInstallationId. I'm using a parse-service provider (parseground.com) so I'm not sure if this may have something to do with the way its installed.

@taivo
Copy link
Owner

taivo commented Jun 10, 2016

We need a bit more info to solve this problem. Is this Android or iOS? Are you able to setup a local toy server for your app to see if push notification works? I wrote a brief quickstart guide that might help.

Also, there is a chance that serverUrl might have been mispelled or incorrect in your plugin setup.

@andrescruz
Copy link
Author

Thanks for the quick response!

I haven't set up the local server. It is for iOS, for now, and the serverUrl is correct. Also, I made sure that the config.xml file contained the preference tags with the correct values.

Let me know what other details I can provide to you to debug this issue. Thanks!

@taivo
Copy link
Owner

taivo commented Jun 11, 2016

I've just rigged up a simple test app based on the ionic blank template, and I ran into a weird issue as described here. Search for Elvistelefon comment on Aug 6, 2014.

Basically the $ionicPlatform.ready block in app.js died during the setup for keyboard plugin. This seems to prevent other plugins' initialization to happen properly for my simple setup. It also prevented other calls to $ionicPlatform.ready from firing. Removing and re-adding the keyboard plugin somehow fixed things. After I did just that, I was able to retrieve my installationId just fine.

Not sure if that's related to your problem but it should only take a couple minutes to find out.

@taivo
Copy link
Owner

taivo commented Jun 17, 2016

Hey @andrescruz , were you able to fix your problem?

If not, please try it out on the example app setup I have added. There is a sample ionic app designed for quick testing parse-push and there is also a corresponding parse-server app to go with it. All instructions are there in the example dir.

@taivo taivo closed this as completed Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants