Subversion Repositories SmartDukaan

Rev

Rev 15691 | Rev 15725 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15691 Rev 15724
Line 105... Line 105...
105
                    "smallIcon":"small_icon"}
105
                    "smallIcon":"small_icon"}
106
            
106
            
107
            post_data = {}
107
            post_data = {}
108
 
108
 
109
            post_data['data'] = data
109
            post_data['data'] = data
-
 
110
            regIds = []
-
 
111
            regIds.append(notificationRecord.gcmRegId)
110
            post_data['registration_ids'] = notificationRecord.gcmRegId
112
            post_data['registration_ids'] = regIds
111
             
113
             
112
            post_data_json = json.dumps(post_data)
114
            post_data_json = json.dumps(post_data)
113
            print post_data_json
115
            print post_data_json
114
            
116
            
115
            response = requests.post(GCM_URL, data=post_data_json, headers=headers)
117
            response = requests.post(GCM_URL, data=post_data_json, headers=headers)