You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied/pasted the code from the README to create actions/categories, then registered like so:
pushPlugin.registerUserNotificationSettings(// the success callback which will immediately return (APNs is not contacted for this)function(){pushPlugin.register(tokenHandler,errorHandler,{"badge": false,"sound": true,"alert": true,ecb: ecbHandler});},// called in case the configuration is incorrecterrorHandler,{// asking permission for these featurestypes: [pushPlugin.UserNotificationTypes.Alert,pushPlugin.UserNotificationTypes.Sound],// register these categoriescategories: [readCategory,otherCategory]});
The message sent by the server looks something like this:
I receive the notifications but they have no buttons. Can you see anything obvious that I'm doing wrong? I've set breakpoints in the native code and it looks like the categories are getting added. Is there anything else you could suggest I look at while debugging?
Thanks
The text was updated successfully, but these errors were encountered:
The payload looks correct. You may want to examine the category definition for readCategory and otherCategory and their actions. Also, are you running this on iOS8+?
@EddyVerbruggen I finally got around to revisiting this. I managed to get it working by commenting out lines 260 and 261 in PushPlugin.m. When those lines run my notifications don't have buttons. I must be doing something wrong, right?
I copied/pasted the code from the README to create actions/categories, then registered like so:
The message sent by the server looks something like this:
I receive the notifications but they have no buttons. Can you see anything obvious that I'm doing wrong? I've set breakpoints in the native code and it looks like the categories are getting added. Is there anything else you could suggest I look at while debugging?
Thanks
The text was updated successfully, but these errors were encountered: