Subversion Repositories SmartDukaan

Rev

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

Rev 26949 Rev 26950
Line 1819... Line 1819...
1819
				jsonObj.put("vibrate", 1);
1819
				jsonObj.put("vibrate", 1);
1820
				jsonObj.put("pid", pushNotification.getId());
1820
				jsonObj.put("pid", pushNotification.getId());
1821
				jsonObj.put("sound", 1);
1821
				jsonObj.put("sound", 1);
1822
				jsonObj.put("priority", "high");
1822
				jsonObj.put("priority", "high");
1823
				json.put("data", jsonObj);
1823
				json.put("data", jsonObj);
-
 
1824
				LOGGER.info("request {}",jsonObj);
1824
				try {
1825
				try {
1825
					CloseableHttpClient client = HttpClients.createDefault();
1826
					CloseableHttpClient client = HttpClients.createDefault();
1826
					HttpPost httpPost = new HttpPost(FCM_URL);
1827
					HttpPost httpPost = new HttpPost(FCM_URL);
1827
 
1828
 
1828
					httpPost.setHeader("Content-Type", "application/json; utf-8");
1829
					httpPost.setHeader("Content-Type", "application/json; utf-8");