Closed tonymckendry closed 3 years ago
In readme you can read:
"For a successful processing of Android, please have all defaults set (although you might not have a sound file or icon etc) or send the keys within your notification method. Defaults are set in startup/server/push.js. When Android keys are missing and debugging is set to true you may receive this error: 'android.data must only contain string values'."
Whenever I attempt to send a test notification I receive an error about Android data - I get the error below infinitely as the app attempts to send the notification over and over and over again until I stop the server or delete the record from the database.
I have noticed that I do not receive the error if there are no devices registered _push_app_tokens collection in the db, but if I register an iPhone, this is what happens.
What do I need to do differently here? I have followed the example fairly closely and do believe I have all the correct pieces in place, though there is lack of documentation to be sure.
App Token:
Notification send:
Notification in _push_notifications collection:
Error: