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

iOS: Not able to schedule local notification after adding the plugin #183

Closed
sparsh0611 opened this issue Sep 30, 2015 · 10 comments
Closed
Labels

Comments

@sparsh0611
Copy link

Even when a local notification is scheduled, didRegisterForRemoteNotificationsWithDeviceToken method of PushPlugin.m gets called and returns an error "Invalid callback id received by sendPluginResult". Because of this, local notification is not scheduled either.
The plugin used for local notification is -
https://github.com/katzer/cordova-plugin-local-notifications.git

@fredgalvao
Copy link
Collaborator

If this means the cordova-plugin-local-notification plugin doesn't work well with phonegap-plugin-push, I +1 on fixing it. I was counting on being able to use both plugins on my project.

@macdonst
Copy link
Member

macdonst commented Oct 1, 2015

@sparsh0611 interesting, did you open a similar bug on Local Notifications and link to this one?

@sparsh0611
Copy link
Author

@macdonst No, since the problem started after the previous PushPlugin was deprecated and I switched to this one, I haven't opened the bug on Local Notifications.
Edit: I have opened a bug on local notification too now. It can be found here.

@macdonst
Copy link
Member

macdonst commented Oct 3, 2015

@sparsh0611 kk, thx. It's weird that it would pop up now as the iOS code is nearly identical to the old plugin.

@macdonst macdonst added the retest label Oct 3, 2015
@sparsh0611
Copy link
Author

@macdonst I'm really grateful for your quick response and all the help. I see that you have added the retest label too. But, my business client is continuously asking me about the progress and also when the issue will be resolved. I'll be really thankful if you could let me know the progress or if you have identified the issue. Thanks.

@dnish
Copy link

dnish commented Oct 8, 2015

Same problem here with Android, it breaks the building when I use both plugins in my project.

@macdonst
Copy link
Member

macdonst commented Oct 8, 2015

@dnish Go +1 this PR on the local notification plugin as it fixes your issue: katzer/cordova-plugin-local-notifications#697

EdMcBane added a commit to optionfactory/phonegap-plugin-push that referenced this issue Oct 10, 2015
Conflicting implementation of didRegisterUserNotificationSettings
prevents cordova-local-notifications-plugin from being notified of success.
emoving it fixes the problem as it was redundant (simply calls
registerForRemoteNotifications, which is called anyway from PushPlugin:init
right after registerUserNotificationSettings).

Fixes phonegap/issues/183 and
katzer/cordova-plugin-local-notifications/issues/695
@sparsh0611
Copy link
Author

Thanks @EdMcBane for the solution and @macdonst for the quick merge!

@katzer
Copy link

katzer commented Dec 2, 2015

👍

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
midas19910709 added a commit to midas19910709/phonegap-plugin-push that referenced this issue Mar 30, 2022
Conflicting implementation of didRegisterUserNotificationSettings
prevents cordova-local-notifications-plugin from being notified of success.
emoving it fixes the problem as it was redundant (simply calls
registerForRemoteNotifications, which is called anyway from PushPlugin:init
right after registerUserNotificationSettings).

Fixes phonegap/phonegap-plugin-push/issues/183 and
katzer/cordova-plugin-local-notifications/issues/695
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

5 participants