Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Unable to compile 2.3.0 #2933

Open
fincha opened this issue Jul 9, 2020 · 0 comments
Open

Unable to compile 2.3.0 #2933

fincha opened this issue Jul 9, 2020 · 0 comments

Comments

@fincha
Copy link

fincha commented Jul 9, 2020

Hi,

I have some behavior I can't explain, in my package.json I have:

"phonegap-plugin-push": "^2.3.0"

I did clean install, deleted, cleaned all files.

When I do

cordova run ios

and open xcode > Plugins/PushPlugin.m

I don't see the version 2.3.0 I see some other version. So I do manuel file replacesment, just to check if this works... I take this files:

https://github.com/phonegap/phonegap-plugin-push/blob/2.3.0/src/ios/PushPlugin.m
https://github.com/phonegap/phonegap-plugin-push/blob/2.3.0/src/ios/PushPlugin.h

and replace the content of my files. The compiler compains about this line:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotificationSettings:) name:pushPluginApplicationDidBecomeActiveNotification object:nil];

Error message:

/Plugins/phonegap-plugin-push/PushPlugin.m:290:63: Use of undeclared identifier 'pushPluginApplicationDidBecomeActiveNotification'; did you mean 'UIApplicationDidBecomeActiveNotification'?

I did the replacement and at least it compiles. But this doesn't seems right... maybe someone has an idea on this?

second issue

iOS 13.5.1
iPhone 8

If I have the Google-Service-plist I am getting a FCM id. But never a APNS. I have deleted the plist, and according to code, I should be able to get APNS Id.

In my logs I see this:

`
FCM Sender ID (null)

Using APNS Notification

...

PushPlugin clearing badge
`

I also do the confirmation to allow pushes, but no id is comming up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant