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

Unable to compile 2.3.0 #2933

@fincha

Description

@fincha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions