Measuring results
Results of notifications can be tracked by analyzing CSV files from notification log directory (default location of log file is /var/log/pushkin/notification/notification.csv and it's rotated hourly by default, which can be changed in config.ini). We plan to create a dashboard with various settings and statistics.
CSV file has following columns:
status- status of notification, possible statuses are listed belowlogin_id- id of user in your applicationcontent- content of notification sent to usermessage_id- id of notification in pushking databasecampaign_id- for future usesending_id- internal id of notification used when sending batchgame- name of your game or application, can be set inconfig.iniworld_id- parameter fromconfig.ini, should be used to distinct instances of Pushkinscreen- key for deep linktime- unix timestamp in milliseconds, when notification was senttime_to_live- unix timestamp in milliseconds, after this time notification should not be deliveredplatform- id of platformreceiver_id- device token at GCM or APN
Here are possible statuses:
NOTIFICATION_CONTROL_GROUP = -2
NOTIFICATION_READY = -1
NOTIFICATION_SUCCESS = 0
NOTIFICATION_UNKNOWN_ERROR = 1
NOTIFICATION_CONNECTION_ERROR = 2
NOTIFICATION_EXPIRED = 3
NOTIFICATION_UNKNOWN_PLATFORM = 4
NOTIFICATION_SENDER_QUEUE_LIMIT = 5
# GCM errors [100 : 200)
NOTIFICATION_GCM_FATAL_ERROR = 100
NOTIFICATION_GCM_UNAVAILABLE = 101
NOTIFICATION_GCM_INVALID_REGISTRATION_ID = 102
NOTIFICATION_GCM_DEVICE_UNREGISTERED = 103
# APNs errors [200 : 300)
NOTIFICATION_APNS_MALFORMED_ERROR = 200