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

Cordova does not receive the content push #7

Open
cleiton-tavares opened this issue Jul 3, 2015 · 11 comments
Open

Cordova does not receive the content push #7

cleiton-tavares opened this issue Jul 3, 2015 · 11 comments

Comments

@cleiton-tavares
Copy link

My app receives notification of the push, but when the application is closed can not receive the push data when opening the app

I'm using window.onNotification and it works with open app: /

@grrrian
Copy link
Owner

grrrian commented Jul 3, 2015

Is this on iOS or android? Are you registering on device ready?

ian

On Jul 3, 2015, at 11:46 AM, Cleiton Tavares [email protected] wrote:

My app receives notification of the push, but when the application is closed can not receive the push data when opening the app

I'm using window.onNotification and it works with open app: /


Reply to this email directly or view it on GitHub.

@cleiton-tavares
Copy link
Author

in iOS, but recorded in the device ready I can see the instalation-id in the opening of the app put it in the background can not receive the push coming from the data when I open the application

@urbanmania
Copy link

I actually have a similar issue. I've got two computers I use to build on (work and home) and when I build using my work machine I don't get the pushes (but devices register normally and are subscribed to channels) but if I build on my home machine everything works. I just assumed it was something to do with the setup of the project on my work machine and I haven't looked into it as this is a side project that I mainly work on at home

@urbanmania
Copy link

btw, just removed the ios platform and re-added and now the work build also gets the push, so perhaps that's something you might want to try @cleiton-tavares

@grrrian
Copy link
Owner

grrrian commented Jul 3, 2015

If you are curious in debugging in XCode, you can look at this function of CDVParsePlugin.m : (BOOL)swizzled_application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions (line 195). This function gets called when the app gets launched as a result of the user tapping the notification . launchOptions should contain the notification payload.

@cleiton-tavares
Copy link
Author

@urbanmania hey, unfortunately it did not work

@cleiton-tavares
Copy link
Author

@grrrian So what should I do for my knowledge in ios development and objc eh too small, if you can help me

@grrrian
Copy link
Owner

grrrian commented Jul 3, 2015

You can put breakpoints (by clicking on the line number). The following lines should be called: 210, (and if the app is running in foreground or background) 251. After line 251 is executed, your callback should be called.

@cleiton-tavares
Copy link
Author

@grrrian I could debug and see the value that this coming, but it does not yet know how to send js interface for my app to see this data when opened

@radkris-git
Copy link

This happens for me as well.
I have added the plugin using cordova plugin add <info>
When i build by running ionic build ios, build is failing with
http://pastebin.com/Y9K5AAR1

@B3rs
Copy link

B3rs commented Nov 11, 2015

i have fixed it on android by manually installing this plugin https://github.com/phonegap/phonegap-plugin-push .

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

5 participants