Open juniverse76 opened 8 years ago
android easy to setup ios difficult due to the certificate hell (every cert/key/provision etc. have to match...) + note that some network routers might block some ports.
Hey, thanks for a comment. Actually i fixed my issue. It was related to prod/dev setting. Apparently the key was for production and the config was in development. I guess i should've catch this earlier... Though it would've been better if the document has comment about checking the apn key type and 'production' flag in the config json file.
Thank you anyway!
android easy to setup ios difficult due to the certificate hell (every cert/key/provision etc. have to match...) + note that some network routers might block some ports.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/raix/push/issues/238#issuecomment-248390788, or mute the thread https://github.com/notifications/unsubscribe-auth/ALkUZHNIupZQyYitim0-QyqCHufFNIU8ks5qsCajgaJpZM4JzmG9 .
@juniverse76 I'm having problems using it with Android. Can you please give an example of the configurations (client and server) where did you put them ?
Thanks a lot.
@y01s There was nothing special about Android. I just followed the instruction in the document. Go in to google api, create project and all sort. Put the apiKey and projectNumber in the appropriate places. And all things seem to work. Sorry that I cannot be more specific, but that was all I did.
@juniverse76 https://github.com/juniverse76 I'm having problems using it with Android. Can you please give an example of the configurations (client and server) where did you put them ?
Thanks a lot.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/raix/push/issues/238#issuecomment-249353064, or mute the thread https://github.com/notifications/unsubscribe-auth/ALkUZAJYXJN0zPfRj6RHzBPxZTkM71c1ks5qtOA0gaJpZM4JzmG9 .
@juniverse76 It's okay, I solved the issue. Actually, I was running the app on an android emulator without google api, and when I changed, it worked.
Thanks for your help.
for me even android is not working. I couldn't find document on how to ask for permission to enable push notification. Push.addListener('token', () => {}) callback never called, Probably because I didn't ask for token(dont know how). Push.enabled(true) doesnt fire token callback either, not ask for any permission on mobile. Any code sample on how it worked on android?
Hi, first of all, thank you for great library.
I am developing app for both android and iOS. And when I test sending a push, Android device receives the push very well. However, iOS does not.
When I run the server with Push.debug = true; I have the following message.
I figured this messages is good sign since I got the token from apn, right? I also have similar message for gcm too.
For more background, I am testing on iOS device by distributing from HockeyApp. Also, my work station is in Ubuntu (and so is my test server), so I'm running the server by
like so.
In conclusion, I need help...